Implemented modulo operation

This commit is contained in:
2024-07-25 12:11:55 +02:00
parent 65cc81032b
commit 60b8ff1308
7 changed files with 75 additions and 0 deletions

View File

@ -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: