Difference between revisions of "83:ROMCalls:418E"
From WikiTI
		
		
		
| m |  (83, not 83Plus; fixed links; note RST 08h) | ||
| 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 [[ | + | Copies the contents of [[83:RAM:8039|OP1]] to [[83:RAM:8044|OP2]] | 
| === Inputs === | === Inputs === | ||
| Line 13: | Line 13: | ||
| === Outputs === | === Outputs === | ||
| − | * [[ | + | * [[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 |   <nowiki>ld hl,op1 | ||
| ld de,op2 | ld de,op2 | ||
| − | ld bc, | + | ld bc,11 | 
| ldir</nowiki> | ldir</nowiki> | ||
Latest revision as of 17: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
