Difference between revisions of "83:ROMCalls:418E"
From WikiTI
(83, not 83Plus; fixed links; note RST 08h) |
|||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | [[Category: | + | [[Category:83:ROMCalls:By Name|OP1toOP2]] |
− | [[Category: | + | [[Category:83:ROMCalls:By Name:Utility|OP1toOP2]] |
− | [[Category: | + | [[Category:83:ROMCalls:By Address|418E - OP1toOP2]] |
== Synopsis == | == Synopsis == | ||
'''Official Name:''' OP1toOP2 | '''Official Name:''' OP1toOP2 | ||
− | ''' | + | '''Call Address:''' 418E or 0008 |
− | Copies the contents of OP1 to OP2 | + | Copies the contents of [[83:RAM:8039|OP1]] to [[83:RAM:8044|OP2]] |
=== Inputs === | === Inputs === | ||
Line 13: | Line 13: | ||
=== Outputs === | === Outputs === | ||
− | * OP2: equals OP1 | + | * [[83:RAM:8044|OP2]]: equals [[83:RAM:8039|OP1]] |
=== Registers Destroyed === | === Registers Destroyed === | ||
− | * BC, DE, HL | + | * F, BC, DE, HL |
− | + | ||
== Comments == | == Comments == | ||
− | + | Instead of a "CALL 418Eh", you can use an "RST 08h", which is smaller and slightly faster. | |
+ | |||
+ | This is roughly equivalent to the following code: | ||
+ | <nowiki>ld hl,op1 | ||
+ | ld de,op2 | ||
+ | ld bc,11 | ||
+ | ldir</nowiki> |
Latest revision as of 16:36, 23 September 2009
Synopsis
Official Name: OP1toOP2
Call Address: 418E or 0008
Copies the contents of OP1 to OP2
Inputs
none
Outputs
Registers Destroyed
- F, BC, DE, HL
Comments
Instead of a "CALL 418Eh", you can use an "RST 08h", which is smaller and slightly faster.
This is roughly equivalent to the following code:
ld hl,op1 ld de,op2 ld bc,11 ldir