command stream work

disassemble call/jump/ret instructions
prepare for relocation
implement loop (but it doesn't work)
This commit is contained in:
tildearrow 2025-04-03 05:09:40 -05:00
parent 20f322d78c
commit 28f8423f23
4 changed files with 87 additions and 18 deletions

View file

@ -115,6 +115,12 @@ bool DivCSPlayer::tick() {
case 0xc7: case 0xc8: case 0xc9: case 0xca:
command=next-0xb4;
break;
case 0xf0: // placeholder
stream.readC();
stream.readC();
stream.readC();
break;
case 0xf1: // nop
case 0xf7:
command=stream.readC();
break;