extern _main
extern _test_copy
extern __etext
+extern __seg1DL
+extern __seg1DH
extern __edata
extern __end
MYSEGMENT equ 0xF000
+USER_RAM equ 0x1000
; Set Maps and Sprite Table at the end of first part of ram
fgmap equ WSC_TILE_BANK1-MAP_SIZE
;--------------------------------
; Set Segments for Copy
- mov ax,0xF000
+ mov ax,0x2000 ; ! note, try 0x2000, 0x4000, etc..
mov ds,ax
xor ax,ax
mov es,ax
- mov si, 0xF000
- mov di, 0x1000
- mov cx, 50
+ mov si, __seg1DL
+ mov di, USER_RAM
+ mov ax, __seg1DH
+ mov bx, __seg1DL
+ sub bx, ax
+ mov cx, ax
rep movsb
; Make BG