mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-04 06:22:58 +00:00
0
(Snippet) Dump memory to disk
simon987 edited this page 2019-11-03 09:22:23 -05:00
HWID_FLOPPY equ 0xB
FLOPPY_WRITE_SECTOR equ 0x3
;**************************************
;* dumpMemToDisk()
;* Dump entire memory to Floppy Disk
dumpMemToDisk:
MOV X, 0
MOV Y, 0
dumpMemToDiskLoop:
MOV A, FLOPPY_WRITE_SECTOR
HWI HWID_FLOPPY
ADD X, 1
ADD Y, 512
CMP X, 128
JNZ dumpMemToDiskLoop
RET