projects
/
swan-dev
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a73902d
)
variables for segment locations
author
Robin Krens
<robin@robinkrens.nl>
Mon, 6 Jun 2022 12:31:07 +0000
(14:31 +0200)
committer
Robin Krens
<robin@robinkrens.nl>
Mon, 6 Jun 2022 12:31:07 +0000
(14:31 +0200)
src/init.s
patch
|
blob
|
history
diff --git
a/src/init.s
b/src/init.s
index
004c231
..
cb1bb03
100644
(file)
--- a/
src/init.s
+++ b/
src/init.s
@@
-4,10
+4,13
@@
extern _main
extern _test_copy
extern __etext
extern _main
extern _test_copy
extern __etext
+extern __seg1DL
+extern __seg1DH
extern __edata
extern __end
MYSEGMENT equ 0xF000
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 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
;--------------------------------
; Set Segments for Copy
- mov ax,0x
F000
+ mov ax,0x
2000 ; ! note, try 0x2000, 0x4000, etc..
mov ds,ax
xor ax,ax
mov es,ax
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
rep movsb
; Make BG