Compare commits
No commits in common. "db5aeb333c859d0d2e658f82d519e7a8b50bef9f" and "790cd1a45319609cd1538672027582dd4b431e99" have entirely different histories.
db5aeb333c
...
790cd1a453
2 changed files with 2 additions and 16 deletions
|
@ -184,13 +184,13 @@ module Hence
|
|||
when 0x08 # shr
|
||||
@reg_tmp = @reg_a >> @reg_b
|
||||
when 0x09 # add
|
||||
@reg_tmp = @reg_a &+ @reg_b &+ (@reg_s & 0b00000001_u8)
|
||||
@reg_tmp = @reg_a &+ @reg_b
|
||||
@reg_s &= 0b11111110_u8
|
||||
if @reg_tmp < @reg_a
|
||||
@reg_s |= 0b00000001_u8
|
||||
end
|
||||
when 0x0a # sub
|
||||
@reg_tmp = @reg_a &- @reg_b &- (@reg_s & 0b00000001_u8)
|
||||
@reg_tmp = @reg_a &- @reg_b
|
||||
@reg_s &= 0b11111110_u8
|
||||
if @reg_tmp > @reg_a
|
||||
@reg_s |= 0b00000001_u8
|
||||
|
|
|
@ -104,20 +104,6 @@ sections:
|
|||
tmpl 0xb
|
||||
alu 0x01
|
||||
push
|
||||
- name: clc
|
||||
description: Clears carry flag
|
||||
opcode: null
|
||||
arg: null
|
||||
stack:
|
||||
input: []
|
||||
output: []
|
||||
microcode: |
|
||||
tmpsr 0xd
|
||||
tmpl 0xa
|
||||
tmps 0b11111110
|
||||
tmpl 0xb
|
||||
alu 0x01
|
||||
tmpl 0xd
|
||||
- name: stack-manipulation
|
||||
description: Stack manipulation
|
||||
opcodes:
|
||||
|
|
Loading…
Reference in a new issue