From: Robin Krens Date: Mon, 6 Jun 2022 12:31:07 +0000 (+0200) Subject: variables for segment locations X-Git-Url: https://robinkrens.nl/gitweb/?a=commitdiff_plain;h=a223d7a6973882534ccd8f427fcf68e6a50a1830;p=swan-dev variables for segment locations --- diff --git a/src/init.s b/src/init.s index 004c231..cb1bb03 100644 --- a/src/init.s +++ b/src/init.s @@ -4,10 +4,13 @@ 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 @@ -112,14 +115,17 @@ sprtable equ bgmap-SPR_TABLE_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