Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdryan/nextpatches #8

Closed
wants to merge 7 commits into from
Closed

Markdryan/nextpatches #8

wants to merge 7 commits into from

Conversation

markdryan
Copy link
Owner

No description provided.

Label subtraction was deprecated in version v5 of Specasm and
is now removed in v7 to free up space needed for the next opcodes.
It's still supported by the linker however, so .x files created
with pre v7 versions of Specasm can still be linked with the v7
linker.  The Specasm editor will rewrite instructions that use
label subtraction to use the new expression syntax when it loads
.x files.

Signed-off-by: Mark Ryan <[email protected]>
The following opcodes are added:

ldix
ldws
ldirx
lddx
lddrx
ldpirx
outinb
mul d,e
add hl,a
add de,a
add bc,a
add hl,imm
add de,imm
add bc,imm
swapnib
mirror a
push imm
nextreg imm, imm
nextreg imm, A
pixeldn
pixelad
setae
test imm
bsla de,b
bsra de,b
bsrl de,b
bsrf de,b
brlc de,b
jp (c)

These opcodes can be enabled and disabled using the SPECASM_NO_NEXT macro.

Signed-off-by: Mark Ryan <[email protected]>
But ensure that they are tested in the CI.

Signed-off-by: Mark Ryan <[email protected]>
To build/48 to prepare the way for adding a separate set of Next
build files.

Signed-off-by: Mark Ryan <[email protected]>
Add the next peer layer and a custom specasm_next.c file.

Signed-off-by: Mark Ryan <[email protected]>
The specasm .dotn file now works properly on the next.  This
is achieved by relocating some of the code into 3 separate 8kb
banks, 2 for the parsing code and 1 for the dumping code.  We
have about 1.5kb free in the main section.  We also fix the
keyboard input (for all clockspeeds) and the printing routines
which relied on the ROM being mapped and so needed to be
rewritten.

Signed-off-by: Mark Ryan <[email protected]>
@markdryan markdryan closed this Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant