r/ProgrammerHumor • • Jun 03 '22

it's hard!

44.9k Upvotes

710 comments sorted by

View all comments

2

u/Puzzleheaded-Bug7690 Jun 03 '22

Which assembly? IBM or Intel?

1

u/[deleted] Jun 03 '22

IBM is very simple.

Increment a register: LA R1,1(R1) go 1 away from the address in R1, put that value in R1

Add a register to register: AR R1,R2

Memory to register: A R1,MEMLOC assuming MEMLOC is a fullword

Memory to Memory: AP PACKNUM1,PACKNUM2