Changeset 46 for trunk/TOOLS/INTERNAL/FIXCODE.ASM
- Timestamp:
- Apr 12, 2014, 8:23:32 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TOOLS/INTERNAL/FIXCODE.ASM
r43 r46 41 41 COM_CodeName db 'AIR-BOOT.COM', 0 42 42 COM_LoadMBR db ' - Loading MBR-protection from file...$' 43 COM_MBRName db 'MBR-PROT\MBR _PROT.COM', 043 COM_MBRName db 'MBR-PROT\MBR-PROT.BIN', 0 44 44 COM_MergeMBR db ' - Merging MBR-protection into bootcode...$' 45 45 COM_CountCode db ' - Count code in bootcode-image...$' … … 51 51 COM_FailedReadCode db 'Read air-boot.com failed', 13, 10, '$' 52 52 COM_FailedInvalidCode db 'Invalid air-boot.com', 13, 10, '$' 53 COM_FailedOpenMBR db 'mbr-prot\mbr _prot.comnot found', 13, 10, '$'54 COM_FailedReadMBR db 'Read mbr-prot\mbr _prot.comfailed', 13, 10, '$'55 COM_FailedInvalidMBR db 'Invalid mbr-prot\mbr _prot.com', 13, 10, '$'53 COM_FailedOpenMBR db 'mbr-prot\mbr-prot.bin not found', 13, 10, '$' 54 COM_FailedReadMBR db 'Read mbr-prot\mbr-prot.bin failed', 13, 10, '$' 55 COM_FailedInvalidMBR db 'Invalid mbr-prot\mbr-prot.bin', 13, 10, '$' 56 56 COM_FailedWriteCode db 'Write air-boot.com failed', 13, 10, '$' 57 57 … … 65 65 ShowMessage EndP 66 66 67 ShowError Proc Near 68 mov ah, 09h 69 int 21h ; DOS: WRITE STRING DS:DX TO CONSOLE 70 jmp EndProgram 71 ret 72 ShowError EndP 67 ShowError Proc Near 68 mov ah, 09h 69 int 21h ; DOS: WRITE STRING DS:DX TO CONSOLE 70 mov al,1 ; Error code 71 jmp EndProgram 72 ret 73 ShowError EndP 73 74 74 75 COM_Init: … … 128 129 call ShowMessage 129 130 130 ; Open MBR_PROT. COM131 ; Open MBR_PROT.BIN 131 132 mov dx, offset COM_LoadMBR 132 133 call ShowMessage … … 141 142 DoneOpenMBR: mov bx, ax ; BX = Filehandle 142 143 143 ; Load MBR _PROT.COM144 ; Load MBR-PROT.BIN 144 145 mov ah, 3Fh 145 146 mov cx, 1024 ; Image size … … 204 205 mov dx, offset COM_Failed 205 206 call ShowMessage 207 mov al,2 ; Error code 206 208 jmp EndProgram 207 209 … … 220 222 221 223 mov si, offset BootCode 222 add si, 512*53 223 mov cx, 256 224 mov dx, 53 224 add si, 512*53 ; 6A00 225 mov cx, 256 ; 512 bytes 226 mov dx, 53 ; initial count 225 227 COM_CodeEndLoop:push cx 226 228 push si … … 277 279 mov dx, offset COM_Okay 278 280 call ShowMessage 281 xor al,al ; No Error 279 282 jmp EndProgram 280 283 … … 282 285 EndProgram: 283 286 ; DOS: TERMINATE PROGRAM 284 mov a x, 4C00h287 mov ah, 04Ch 285 288 int 21h 286 289
Note:
See TracChangeset
for help on using the changeset viewer.