I know this is a lot of effort listed below but mainly I'm curious if its something that would even be considered. I thought about just making my own assembler but its such a daunting task when something already exists that's 98% of the way there. Feel free to just close this if it doesn't make sense.
rgbds is surprisingly useful for developing and reverse engineering eReader Z80 applications but there are a few hurdles that must be hacked around. The addition of a flag like -ereader along with the following changes would be a huge boost to productivity and code cleanliness.
Opcodes supported by eReader but missing from gb
https://github.com/FexCollects/pokecarde/blob/master/macros.asm#L4
- Load Indirect HL:
ld [nn], hl
- Load HL Indirect:
ld hl, [nn]
- Load Indirect HL A:
ld [hl], a
- Load Indirect HL B:
ld [hl], b
- Load Indirect HL C:
ld [hl], c
- Load A Indirect:
ld a, [nn]
- Load A Indirect DE:
ld a, [de]
- Load Indirect A:
ld [nn], a
- Load A Indirect HL:
ld a, [hl]
- Load B Indirect HL:
ld b, [hl]
- Load C Indirect HL:
ld c, [hl]
- Load D Indirect HL:
ld d, [hl]
- Load E Indirect HL:
ld e, [hl]
- Load L Indirect HL:
ld l, [hl]
- Add A Indirect HL:
add a, [hl]
- Exchange DE HL:
ex de, hl
Opcdoes not supported by eReader but present in gb (should be an error)
Nice way to extract just the machine code
While the first two items are significantly more important, it would be really nice if there was a way to dump just the assembled machine code. Right now a lot of effort is put into stripping out all the gbc stuff added.
I know this is a lot of effort listed below but mainly I'm curious if its something that would even be considered. I thought about just making my own assembler but its such a daunting task when something already exists that's 98% of the way there. Feel free to just close this if it doesn't make sense.
rgbds is surprisingly useful for developing and reverse engineering eReader Z80 applications but there are a few hurdles that must be hacked around. The addition of a flag like
-ereaderalong with the following changes would be a huge boost to productivity and code cleanliness.Opcodes supported by eReader but missing from gb
https://github.com/FexCollects/pokecarde/blob/master/macros.asm#L4
ld [nn], hlld hl, [nn]ld [hl], ald [hl], bld [hl], cld a, [nn]ld a, [de]ld [nn], ald a, [hl]ld b, [hl]ld c, [hl]ld d, [hl]ld e, [hl]ld l, [hl]add a, [hl]ex de, hlOpcdoes not supported by eReader but present in gb (should be an error)
Z80/8080 Format)Nice way to extract just the machine code
While the first two items are significantly more important, it would be really nice if there was a way to dump just the assembled machine code. Right now a lot of effort is put into stripping out all the gbc stuff added.