Skip to content

Commit

Permalink
Added X16 reading of zcode into banked memory
Browse files Browse the repository at this point in the history
  • Loading branch information
johanberntsson committed Feb 29, 2024
1 parent 3094007 commit 4ebde96
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ all: x16

x16:
ruby make.rb -s examples/dejavu.z3 -t:x16 -v
tail --bytes=+8193 x16_dejavu/dump.bin > x16_dejavu/dump2.bin
cmp x16_dejavu/dump2.bin x16_dejavu/zcode
#acme --cpu 65c02 -o testx16.bin --format cbm -l temp/acme_labels.txt testx16.asm
# Need F12 to enter the debugger
#grep testscreen temp/acme_labels.txt
#grep s_printchar temp/acme_labels.txt
#x16-emulator/x16emu -prg testx16.bin -scale 2 -debug -run
#x16-emulator/x16emu -prg testx16.bin -scale 2 -dump B -zeroram -debug -run

mega65:
ruby make.rb -t:mega65 ./games/infocom/sherlock.z5 -u -s -ch:100 -sb:0 -dm:0 -v
Expand Down
4 changes: 2 additions & 2 deletions asm/ozmoo.asm
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
!ifdef TARGET_X16 {
TARGET_ASSIGNED = 1
COMPLEX_MEMORY = 1
; FAR_DYNMEM = 1 ; This will most likely be used for X16
;FAR_DYNMEM = 1 ; TODO: enable this
SUPPORT_REU = 1
SUPPORT_80COL = 1;
SUPPORT_80COL = 1
!ifndef SLOW {
SLOW = 1
}
Expand Down
10 changes: 5 additions & 5 deletions asm/reu.asm
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ x16_load_file_to_reu
ldx #2 ; filenumber 2
jsr kernal_chkin ; call CHKIN (file 2 now used as input)

ldx #0
stx z_temp

johan
ldx #1 ; start at bank 1 since bank 0 is reserved for kernal
.next_bank
stx $0000
stx $0000 ; switch bank

lda #$00 ; start from $a000
sta z_temp
lda #$a0
sta z_temp + 1
Expand Down
Binary file modified documentation/techreport_13.pdf
Binary file not shown.
1 change: 1 addition & 0 deletions make.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1333,6 +1333,7 @@ def play(filename, storyname)
command = "cd #{filename} && ../#{$X16} -prg #{storyname} -run"
command += " -dump B" # Ctrl-S from the emulator to dump memory
command += " -debug"
command += " -zeroram"
#command += " -scale 2"
elsif $target == "mega65" then
if defined? $MEGA65 then
Expand Down

0 comments on commit 4ebde96

Please sign in to comment.