RosettaCodeData/Task/A+B/8080-Assembly/a+b-1.8080
2023-07-01 13:44:08 -04:00

4 lines
188 B
Text

dad b ; HL += BC (i.e., add BC reg pair to HL reg pair)
dad d ; HL += DE
dad h ; HL += HL (also known as "mul HL by two")
dad sp ; HL += SP (actually the only way to get at SP at all)