-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement basic arith opcodes and add example rom with a moving sprite (
#9) * Implement DEI opcode * Add DUP2 opcode * Add DUP opcode * Add INC opcode * Add SUB opcode * Add MUL opcode * Add DIV opcode * Add ADD opcode * Implement video vector callback and add example rom
- Loading branch information
1 parent
28d4058
commit d174d1f
Showing
8 changed files
with
199 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
pub const BRK: u8 = 0x00; | ||
pub const INC: u8 = 0x01; | ||
pub const DUP: u8 = 0x06; | ||
pub const DUP2: u8 = 0x26; | ||
pub const DEI: u8 = 0x16; | ||
pub const DEO: u8 = 0x17; | ||
pub const ADD: u8 = 0x18; | ||
pub const SUB: u8 = 0x19; | ||
pub const MUL: u8 = 0x1a; | ||
pub const DIV: u8 = 0x1b; | ||
pub const DEO2: u8 = 0x37; | ||
pub const PUSH: u8 = 0x80; | ||
pub const PUSH2: u8 = 0xa0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters