RosettaCodeData/Task/Function-definition/8051-Assembly/function-definition.8051

13 lines
177 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
ORG RESET
mov a, #100
mov b, #10
call multiply
; at this point, the result of 100*10 = 1000 = 03e8h is stored in registers a and b
; a = e8
; b = 03
jmp $
multiply:
mul ab
ret