Changeset 590 in xtideuniversalbios for trunk/Assembly_Library/Src/Display/DisplayPrint.asm
- Timestamp:
- May 25, 2016, 8:16:35 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Display/DisplayPrint.asm
r589 r590 83 83 84 84 ;-------------------------------------------------------------------- 85 ; DisplayPrint_SignedWordFromAXWithBaseInB X85 ; DisplayPrint_SignedWordFromAXWithBaseInBL 86 86 ; Parameters: 87 87 ; AX: Word to display 88 ; B X: Integer base (binary=2, octal=8, decimal=10, hexadecimal=16)89 ; DS: BDA segment (zero) 90 ; ES:DI: Ptr to cursor location in video RAM 91 ; Returns: 92 ; DI: Updated offset to video RAM 93 ; Corrupts registers: 94 ; AX, DX88 ; BL: Integer base (binary=2, octal=8, decimal=10, hexadecimal=16) 89 ; DS: BDA segment (zero) 90 ; ES:DI: Ptr to cursor location in video RAM 91 ; Returns: 92 ; DI: Updated offset to video RAM 93 ; Corrupts registers: 94 ; AX, BH, DX 95 95 ;-------------------------------------------------------------------- 96 96 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 97 97 ALIGN DISPLAY_JUMP_ALIGN 98 DisplayPrint_SignedWordFromAXWithBaseInB X:99 test ax, ax100 jns SHORT DisplayPrint_WordFromAXWithBaseInB X98 DisplayPrint_SignedWordFromAXWithBaseInBL: 99 sahf 100 jns SHORT DisplayPrint_WordFromAXWithBaseInBL 101 101 102 102 push ax … … 105 105 pop ax 106 106 neg ax 107 ; Fall to DisplayPrint_WordFromAXWithBaseInB X108 %endif 109 110 111 ;-------------------------------------------------------------------- 112 ; DisplayPrint_WordFromAXWithBaseInB X107 ; Fall to DisplayPrint_WordFromAXWithBaseInBL 108 %endif 109 110 111 ;-------------------------------------------------------------------- 112 ; DisplayPrint_WordFromAXWithBaseInBL 113 113 ; Parameters: 114 114 ; AX: Word to display 115 ; B X: Integer base (binary=2, octal=8, decimal=10, hexadecimal=16)116 ; DS: BDA segment (zero) 117 ; ES:DI: Ptr to cursor location in video RAM 118 ; Returns: 119 ; DI: Updated offset to video RAM 120 ; Corrupts registers: 121 ; AX, DX115 ; BL: Integer base (binary=2, octal=8, decimal=10, hexadecimal=16) 116 ; DS: BDA segment (zero) 117 ; ES:DI: Ptr to cursor location in video RAM 118 ; Returns: 119 ; DI: Updated offset to video RAM 120 ; Corrupts registers: 121 ; AX, BH, DX 122 122 ;-------------------------------------------------------------------- 123 123 %ifndef MODULE_STRINGS_COMPRESSED 124 124 ALIGN DISPLAY_JUMP_ALIGN 125 DisplayPrint_WordFromAXWithBaseInB X:125 DisplayPrint_WordFromAXWithBaseInBL: 126 126 push cx 127 127 128 128 xor cx, cx 129 xor bh, bh ; Base now in BX 129 130 ALIGN DISPLAY_JUMP_ALIGN 130 131 .DivideLoop:
Note:
See TracChangeset
for help on using the changeset viewer.