Implemented modulo operation
This commit is contained in:
@ -119,6 +119,9 @@ func (a Assembler) Finalize() ([]byte, []byte) {
|
||||
case LABEL:
|
||||
labels[x.Data.(*Label).Name] = Address(len(code))
|
||||
|
||||
case MODULO:
|
||||
code = modulo(code, x.Data)
|
||||
|
||||
case MOVE:
|
||||
switch operands := x.Data.(type) {
|
||||
case *RegisterNumber:
|
||||
|
Reference in New Issue
Block a user