Files
VGMPLAY.WMF/build/wc_api/wc_load512.lst
T

17 lines
1.2 KiB
Plaintext

1 .module wc_load512
2 .area _CODE
00006006 3 WC_ENTRY = 0x6006
4 .globl _wc_load512
00000000 5 _wc_load512::
00000000 DD E5 [15] 6 push ix
00000002 DD 21 00 00 [14] 7 ld ix, #0
00000006 DD 39 [15] 8 add ix, sp
00000008 DD 46 04 [19] 9 ld b, 4(ix) ; B = blocks (1 byte on stack)
10 ; HL = dest (sdcccall(1) first uint16 → HL)
0000000B 3E 30 [ 7] 11 ld a, #0x30
0000000D CD 06 60 [17] 12 call WC_ENTRY
00000010 DD E1 [14] 13 pop ix
00000012 E1 [10] 14 pop hl ; HL = return address
00000013 33 [ 6] 15 inc sp ; discard 1-byte 'blocks' arg
00000014 E9 [ 4] 16 jp (hl) ; return (callee cleans stack arg)