manual:chapter5:asm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
manual:chapter5:asm [2021/09/29 01:40]
jojo1973 [Assembly-like Instruction Set]
manual:chapter5:asm [2021/09/29 05:58] (current)
jojo1973 [Simple assignments with operators]
Line 69: Line 69:
  
 | '':A=B+#1'' | Add ''1'' to the value of register ''B'' and assign the result to register ''A''  | | '':A=B+#1'' | Add ''1'' to the value of register ''B'' and assign the result to register ''A''  |
-| '':E=R { 1 2 3 }'' Assign the list ''{ 1 2 3 }'' to register ''E''  |+| '':E=R { 1 2 3 }'' Store the list ''{ 1 2 3 }'' in register ''E''  |
 | '':P=A''  | Push the value of register ''A'' to the stack  | | '':P=A''  | Push the value of register ''A'' to the stack  |
 | '':A=S2'' '':S2=S1'' '':S1=A''  | Swap stack level 1 with level 2 using register ''A'' as temporary storage. An error is raised if the stack contains less than 2 levels  | | '':A=S2'' '':S2=S1'' '':S1=A''  | Swap stack level 1 with level 2 using register ''A'' as temporary storage. An error is raised if the stack contains less than 2 levels  |
  • manual/chapter5/asm.txt
  • Last modified: 2021/09/29 05:58
  • by jojo1973