Thread: CHIP8 thread
View Single Post
Old January 9th, 2009   #54 (permalink)
runawayprisoner
Mobile Fanatic
 
runawayprisoner's Avatar
 
Join Date: Nov 2006
Location: Santa Cruz, CA
Posts: 6,207
Nice... I think it's looking very good. I like the two-way disassembler. You may be able to write a complete IDE for Chip-8 and Super Chip from that.

Oh, as for adding, I think you can try doing some logical bit operations, too:
VF = ([VX] + value > 0xFF) ? 1 : 0; (sets carry flag)
VX = ([VX] + value) & 0xFF (this means keep the maximum as 0xFF)

I did a lot of logical bit operations in my interpreter.
__________________
cChip interpreter WIP - current status: Release Candidate
LRx Filter RC - current performance rating: 9/10
runawayprisoner is offline   Reply With Quote