Changeset 623 in xtideuniversalbios for trunk/Assembly_Library
- Timestamp:
- Jun 15, 2022, 2:48:59 PM (2 years ago)
- Location:
- trunk/Assembly_Library
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Inc/Emulate.inc
r605 r623 60 60 %endif 61 61 %else ; XT 62 JUMP_ALIGN EQU 1 ; 2 is optimal for 8086 and NEC V30 CPUs but it's not worth the ROM space for most XT machines with 8088 or NEC V20 CPUs. 63 WORD_ALIGN EQU 2 ; The same applies here but the cost of ROM space is negligible. 62 %ifndef USE_086 ; 8088/V20 CPUs 63 JUMP_ALIGN EQU 1 ; 2 is optimal for 8086 and NEC V30 CPUs but it's not worth the ROM space for most XT machines with 8088 or NEC V20 CPUs. 64 WORD_ALIGN EQU 2 ; The same applies here but the cost of ROM space is negligible. 65 %else ; 8086/V30 CPUs 66 JUMP_ALIGN EQU 2 67 WORD_ALIGN EQU 2 68 %endif 64 69 %endif 65 70 -
trunk/Assembly_Library/Src/Util/Memory.asm
r621 r623 66 66 67 67 ;-------------------------------------------------------------------- 68 ; Memory_ZeroSSBPwithSizeInCX69 ; Parameters70 ; CX: Number of bytes to zero71 ; SS:BP: Ptr to buffer to zero72 ; Returns:73 ; Nothing74 ; Corrupts registers:75 ; CX76 ;--------------------------------------------------------------------77 %ifdef INCLUDE_MENU_LIBRARY78 ALIGN JUMP_ALIGN79 Memory_ZeroSSBPwithSizeInCX:80 push es81 push di82 push ax83 call Registers_CopySSBPtoESDI84 call Memory_ZeroESDIwithSizeInCX85 pop ax86 pop di87 pop es88 ret89 %endif90 91 92 ;--------------------------------------------------------------------93 68 ; Memory_ZeroESDIwithSizeInCX 94 69 ; Parameters … … 119 94 OPTIMIZE_STRING_OPERATION stos 120 95 ret 96 97 98 ;-------------------------------------------------------------------- 99 ; Memory_ZeroSSBPwithSizeInCX 100 ; Parameters 101 ; CX: Number of bytes to zero 102 ; SS:BP: Ptr to buffer to zero 103 ; Returns: 104 ; Nothing 105 ; Corrupts registers: 106 ; CX 107 ;-------------------------------------------------------------------- 108 %ifdef INCLUDE_MENU_LIBRARY 109 ALIGN JUMP_ALIGN 110 Memory_ZeroSSBPwithSizeInCX: 111 push es 112 push di 113 push ax 114 call Registers_CopySSBPtoESDI 115 call Memory_ZeroESDIwithSizeInCX 116 pop ax 117 pop di 118 pop es 119 ret 120 %endif 121 121 122 122
Note:
See TracChangeset
for help on using the changeset viewer.