|
Last Update: 27 November 2000, 1:00 p.m.
Note: material is highlighted |
| Syntax | Semantics |
|---|---|
| COPY memloc, AX | memloc := AX |
| COPY AX, memloc/constant | AX := memloc/constant |
| ADD AX, memloc/constant | AX := AX + memloc/constant |
| SUB AX, memloc/constant | AX := AX - memloc/constant |
| MUL AX, memloc/constant | AX := AX * memloc/constant |
| DIV AX, memloc/constant | AX := AX div memloc/constant |
| CMP AX, memloc/constant | if AX < memloc/constant then CF := B else CF := NB |
| JMP label | IP := instruction with that label |
| JNB label | if CF = NB then IP := instruction with that label |
| JB label | if CF = B then IP := instruction with that label |
| memloc constant | memloc := constant (used only for initializing memloc) |
| IN AX | readln(AX) |
| OUT AX | writeln(AX) |
| HALT |
|