You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
413 B
26 lines
413 B
BITS 16 |
|
; Routine for dumping memory |
|
; pointer in 'si', length is 'cx' |
|
dumpmem: |
|
pusha |
|
;push ax |
|
;push dx |
|
mov si, start_sing_os |
|
mov cx, 512 |
|
call printCRLF_os |
|
shr cx, 1 |
|
xor dx, dx ; zero dx |
|
.loop: |
|
cmp dx, cx |
|
jae .end |
|
mov ax, word [esi + 2*edx] |
|
call dumpax_os |
|
mov ax, 0xe20 |
|
int 0x10 |
|
inc dx |
|
jmp .loop |
|
.end: |
|
;pop dx |
|
;pop ax |
|
popa |
|
ret
|
|
|