mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 12:58:09 +11:00
xcomp: move all offset spitting to the end of the unit
I'd like to move this code, along with all recipe contents, to blk/. It's easier if "emul-related" code is gathered at the same place.
This commit is contained in:
parent
fa79e3d8a6
commit
31119c2de3
@ -9,7 +9,6 @@
|
|||||||
|
|
||||||
CURRENT @ XCURRENT !
|
CURRENT @ XCURRENT !
|
||||||
|
|
||||||
H@ 256 /MOD 2 PC! 2 PC!
|
|
||||||
282 LOAD ( boot.z80 )
|
282 LOAD ( boot.z80 )
|
||||||
393 LOAD ( icore )
|
393 LOAD ( icore )
|
||||||
(entry) _
|
(entry) _
|
||||||
@ -19,4 +18,5 @@ PC ORG @ 8 + !
|
|||||||
," : (emit) 0 PC! ; : (key) 0 PC@ ; "
|
," : (emit) 0 PC! ; : (key) 0 PC@ ; "
|
||||||
422 459 XPACKR
|
422 459 XPACKR
|
||||||
," ' (key) 12 RAM+ ! "
|
," ' (key) 12 RAM+ ! "
|
||||||
|
ORG @ 256 /MOD 2 PC! 2 PC!
|
||||||
H@ 256 /MOD 2 PC! 2 PC!
|
H@ 256 /MOD 2 PC! 2 PC!
|
||||||
|
@ -17,7 +17,7 @@ it from the makefile. If you take the time to look at the base recipe
|
|||||||
`xcomp.fs` in a text editor and take a look at it.
|
`xcomp.fs` in a text editor and take a look at it.
|
||||||
|
|
||||||
To assemble stage 1 from RC2014, all you need to do is to type those commands
|
To assemble stage 1 from RC2014, all you need to do is to type those commands
|
||||||
in the same order, and replace the `H@ 256 /MOD 2 PC! 2 PC!` lines with `H@ .X`.
|
in the same order, and replace the `/MOD 2 PC! 2 PC!` words with `.X`.
|
||||||
Those commands will inform you of the begin/end offsets of the assembled binary.
|
Those commands will inform you of the begin/end offsets of the assembled binary.
|
||||||
|
|
||||||
I'm not going to explain in detail what each command do, but only give you an
|
I'm not going to explain in detail what each command do, but only give you an
|
||||||
@ -33,9 +33,8 @@ we'll of course need for the task ahead.
|
|||||||
|
|
||||||
Then come xcomp overrides, which are needed for xcomp to be effective.
|
Then come xcomp overrides, which are needed for xcomp to be effective.
|
||||||
|
|
||||||
At this point, we're about to begin spitting binary content, so we want to know
|
At this point, we're about to begin spitting binary content, this will be our
|
||||||
where we're at. That's why you'll need to type `H@ .X` and write down the
|
starting offset. `ORG` will soon be set to your current `H@`.
|
||||||
result. That's the starting offset.
|
|
||||||
|
|
||||||
Then, we assemble the boot binary, drivers' native words, then inner core,
|
Then, we assemble the boot binary, drivers' native words, then inner core,
|
||||||
close the binary with a hook word. We're finished with cross-compiling.
|
close the binary with a hook word. We're finished with cross-compiling.
|
||||||
|
@ -15,7 +15,6 @@ RAMSTART 0x70 + CONSTANT ACIA_MEM
|
|||||||
|
|
||||||
CURRENT @ XCURRENT !
|
CURRENT @ XCURRENT !
|
||||||
|
|
||||||
H@ 256 /MOD 2 PC! 2 PC!
|
|
||||||
282 LOAD ( boot.z80 )
|
282 LOAD ( boot.z80 )
|
||||||
352 LOAD ( acia.z80 )
|
352 LOAD ( acia.z80 )
|
||||||
372 LOAD ( sdc.z80 )
|
372 LOAD ( sdc.z80 )
|
||||||
@ -28,4 +27,5 @@ PC ORG @ 8 + !
|
|||||||
438 452 XPACKR ( print fmt readln )
|
438 452 XPACKR ( print fmt readln )
|
||||||
123 132 XPACKR ( linker )
|
123 132 XPACKR ( linker )
|
||||||
," : _ ACIA$ RDLN$ (ok) ; _ "
|
," : _ ACIA$ RDLN$ (ok) ; _ "
|
||||||
|
ORG @ 256 /MOD 2 PC! 2 PC!
|
||||||
H@ 256 /MOD 2 PC! 2 PC!
|
H@ 256 /MOD 2 PC! 2 PC!
|
||||||
|
@ -9,7 +9,6 @@ RS_ADDR 0x80 - CONSTANT RAMSTART
|
|||||||
|
|
||||||
CURRENT @ XCURRENT !
|
CURRENT @ XCURRENT !
|
||||||
|
|
||||||
H@ 256 /MOD 2 PC! 2 PC!
|
|
||||||
0x3000 BIN( !
|
0x3000 BIN( !
|
||||||
282 LOAD ( boot.z80 )
|
282 LOAD ( boot.z80 )
|
||||||
492 LOAD ( trs80.z80 )
|
492 LOAD ( trs80.z80 )
|
||||||
@ -22,4 +21,5 @@ PC ORG @ 8 + !
|
|||||||
499 500 XPACKR ( trs80.fs )
|
499 500 XPACKR ( trs80.fs )
|
||||||
( 0x0a == NLPTR. TRS-80 wants CR-only newlines )
|
( 0x0a == NLPTR. TRS-80 wants CR-only newlines )
|
||||||
," : _ ['] CR 0x0a RAM+ ! BLK$ FD$ (ok) RDLN$ ; _ "
|
," : _ ['] CR 0x0a RAM+ ! BLK$ FD$ (ok) RDLN$ ; _ "
|
||||||
|
ORG @ 256 /MOD 2 PC! 2 PC!
|
||||||
H@ 256 /MOD 2 PC! 2 PC!
|
H@ 256 /MOD 2 PC! 2 PC!
|
||||||
|
Loading…
Reference in New Issue
Block a user