mirror of
https://github.com/forth-ev/VolksForth.git
synced 2025-02-19 09:31:02 +00:00
split the rom-ram-sys.fth file into a c16 and a c64 variant - skipping
entire screens gated by (C64 doesn't work well with stream sources. :-)
This commit is contained in:
parent
eff900d842
commit
a14e742619
@ -22,13 +22,14 @@ The latest release zip file `volksforth-6502-c64-release.zip` contains
|
||||
* `v4th*.fth` - the binaries' main files
|
||||
* `vf-*.fth` - sources from which VolksForth
|
||||
kernels are compiled
|
||||
* `6502asm.fth` - the 6502 assembler, needed to compile Code words
|
||||
* `6502asm.fth` - the 6502 assembler, needed to compile `Code` words
|
||||
* `trns6502asm.fth` - the transient 6502 assembler. It lives on the
|
||||
heap and is removed by `clear`. This allows building applications that
|
||||
have code words but don't carry the assembler itself after saving.
|
||||
* `tmp6502asm.fth` - like the transient 6502 assembler, but living on the
|
||||
tmpheap instead of the heap. See below for tmpheap.
|
||||
* `rom-ram-sys.fth`
|
||||
* `rom-ram-c16.fth` - macros for C16 bank switching
|
||||
* `rom-ram-c64.fth` - macros for C64 bank switching
|
||||
* `tracer.fth` - the debugger
|
||||
* `tasker.fth` - the multitasker
|
||||
* `multitask.fth` - the small bit of assembly code needed by tasker.fth
|
||||
|
@ -1,4 +1,3 @@
|
||||
\ *** Block No. 2, Hexblock 2
|
||||
|
||||
\ rom ram sys cas16aug06
|
||||
\ Shadow with Ctrl+W--->
|
||||
@ -7,36 +6,23 @@
|
||||
\ in the ROM Area
|
||||
|
||||
Assembler also definitions
|
||||
(16 \ Switch Bank 8000-FFFF
|
||||
\ Switch Bank 8000-FFFF
|
||||
: rom here 9 + $8000 u> abort" not here"
|
||||
$ff3e sta ;
|
||||
: ram $ff3f sta ;
|
||||
: sys rom jsr ram ;
|
||||
\ if suffering from abort" not here"
|
||||
\ see next screen Screen --> C)
|
||||
\ see next screen Screen
|
||||
|
||||
|
||||
(64 \ Switch Bank A000-BFFF
|
||||
: rom here 9 + $A000 u> abort" not here"
|
||||
$37 # lda 1 sta ;
|
||||
: ram $36 # lda 1 sta ;
|
||||
C)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
\ *** Block No. 3, Hexblock 3
|
||||
|
||||
\ sysMacro Long cas16aug06
|
||||
|
||||
(64 .( not for C64 !) \\ C)
|
||||
|
||||
\ for advanced users, use macros
|
||||
|
||||
\ the following macro must be compiled well
|
||||
\ below the address of $8000 to work.
|
||||
here $8000 $20 - u> ?exit \ not possible
|
||||
|
||||
|
||||
' 0 | Alias ???
|
||||
|
||||
Label long ROM
|
14
6502/C64/src/rom-ram-c64.fth
Normal file
14
6502/C64/src/rom-ram-c64.fth
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
\ rom ram cas16aug06
|
||||
|
||||
\ macros switching the C64 BASIC ROM ($A000-$Bfff)
|
||||
\ on and off. By default VolksForth runs with BASIC ROM
|
||||
\ switched off.
|
||||
|
||||
Assembler also definitions
|
||||
|
||||
\ Can't swich on BASIC ROM (A000-BFFF) if current code
|
||||
\ location is under the BASIC ROM.
|
||||
: rom here 9 + $A000 u> abort" not here"
|
||||
$37 # lda 1 sta ;
|
||||
: ram $36 # lda 1 sta ;
|
Loading…
x
Reference in New Issue
Block a user