Extending CHIPOS with more CHIP-8 instructions #102
Replies: 7 comments
-
could you change FILL to: |
Beta Was this translation helpful? Give feedback.
-
can you change FETCH this way: |
Beta Was this translation helpful? Give feedback.
-
can you move SKIP2 here: |
Beta Was this translation helpful? Give feedback.
-
for RANDOM, why not: |
Beta Was this translation helpful? Give feedback.
-
it looks like SHOW3 should move down by one line. |
Beta Was this translation helpful? Give feedback.
-
@peterferrie Thanks so much for your suggestions! Let me know if I misunderstood any of them.
Huh. Very clever! Thank you! (Did you mean
Sadly, CHIP-8 instructions are two bytes long. So both
I put it where it is now so
Not sure I understand that one. Won't that set
Good catch!! Definitely burning some unnecessary cycles there. |
Beta Was this translation helpful? Give feedback.
-
> could you change FILL to:
Huh. Very clever! Thank you! (Did you mean `#ENDBUF-DISBUF` though?)
No, I meant DISBUF-ENDBUF so that X has a negative value and you
increment until it reaches zero.
> can you change FETCH this way:
Sadly, CHIP-8 instructions are two bytes long. So both `PIR` and `ZHI` need
to point to both of those bytes (`PIR+1` and `ZLO`).
Yes, I see it now.
> can you move SKIP2 here:
I put it where it is now so `SKFNV` can fall through to `SKIP2`
SKFNV doesn't fall through to SKIP2 - it's gated by a BRA.
That's why I thought that SKIP2 can move.
> for RANDOM, why not:
Not sure I understand that one. Won't that set `RNDX` to `$C000` every time
`RANDOM` is called? That should be the initial seed, but the lower byte
should increment between calls.
Yes, ignore that.
It's my mistake again about X being 16-bit not 8-bit.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Comments for https://tobiasvl.github.io/blog/chipos-hacking/
Beta Was this translation helpful? Give feedback.
All reactions