(sccz80) Gameboy z80 support #1275
Closed
Labels
Comments
suborb
added a commit
that referenced
this issue
Sep 10, 2019
Function pointer calls will be horrendously broken..
|
Shall we use -mgbz80 as the machine specifier option? (to be the same in z80asm and sccz80) |
|
Thanks for picking up the z80asm side Paulo. That’s the value that I’ve chosen - matches the one used by sdcc. |
pauloscustodio
added a commit
that referenced
this issue
Sep 15, 2019
pauloscustodio
added a commit
that referenced
this issue
Sep 15, 2019
|
@pauloscustodio I think djnz has an off by one issue: Source:
Assembled to:
|
|
Status update: The basics are working:
Remaining:
|
pauloscustodio
added a commit
that referenced
this issue
Sep 19, 2019
pauloscustodio
added a commit
that referenced
this issue
Sep 19, 2019
pauloscustodio
added a commit
that referenced
this issue
Sep 19, 2019
|
I've now got galaxy.c from gbdk compiling and mostly working. I think sdcc interop goes away at this stage, getting a whole bunch of errors along the lines of:
Which will need to be investigated later.
|
|
Closing, will reopen as a separate issue with remaining items |
pauloscustodio
added a commit
that referenced
this issue
Oct 29, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just leaving this here for thoughts. We've managed to support the 8080 without too much trouble, so lets turn to the gbz80:
Missing:
ld rr,(nnnn), ld (nnnn),rr, sbc hl,rr, adc hl,rrare absent)ld hl,(nnnn), ld (nnnn),hlex (sp),hl, ex de,hldjnzExtra (useful) instructions:
ld hl,sp+ddadd sp,ddld a,(hl+)ld (hl+),ald a,(hl-)ld (hl-),aMovements:
reti, ld a,(nnnn), ld (nnnn),aSo it's mostly 8080, the main issues at first glance are the missing
exinstructions andld (nnnn),hl.ld hl,(nnnn)is fairly easy to emulate if we can trasha.Library support should be from gbdk, there's an up-to-date version here: https://github.com/andreasjhkarlsson/gbdk-n
The text was updated successfully, but these errors were encountered: