Title: Vote: Opcode to Replace Post by: Lin on April 27, 2011, 04:13:22 AM Well the new scripting system clearly caused problems. I'm done with the engine changes and am going to go back to what the original format used to be - Opcode pointers in bank 0C and no free opcodes to use. This will cost a lot of space in bank C and maybe even ruin some past scripts because of data locations, but it's worth it because it means no crashes. Vote.
~Lin Title: Re: Vote: Opcode to Replace Post by: Jigglysaint on May 02, 2011, 05:00:18 PM Lin, why not just fully expand the opcode list, move the ASM that was after it, change the pointer, then for the new pointers just jump to some unused space by following the same routine as a mid bank-bank swap? Futhermore, there are actually some free opcodes earlier on in the list that are never used, and point to redundant code that you should be able to use. I think I discovered that it was either in the Bx or the 9X were some opcodes that apparently don't have any use.
Edit: Apparently A0 to A7 are not used, and point to 43 43, which I don't know what it does. Just let me check Seasons in case it was used there. Yup, not used. I'm not sure what the code actually does, but why need 8 copies of it? Unless you know the true answer to that, Lin, I'd say those are the best places to add in new opcodes. Title: Re: Vote: Opcode to Replace Post by: Lin on May 02, 2011, 09:59:23 PM Lin, why not just fully expand the opcode list, move the ASM that was after it, change the pointer, then for the new pointers just jump to some unused space by following the same routine as a mid bank-bank swap? Futhermore, there are actually some free opcodes earlier on in the list that are never used, and point to redundant code that you should be able to use. I think I discovered that it was either in the Bx or the 9X were some opcodes that apparently don't have any use. Already did that. The ASM after the pointers is just a no-script: pop hl, inc hl, ret. I replaced it with the pointer, and the new opcode is FD, but I never closed this topic. I guess I should do that now. Thanks :DEdit: Apparently A0 to A7 are not used, and point to 43 43, which I don't know what it does. Just let me check Seasons in case it was used there. Yup, not used. I'm not sure what the code actually does, but why need 8 copies of it? Unless you know the true answer to that, Lin, I'd say those are the best places to add in new opcodes. |