Difference between revisions of "83:ROMCalls:418E"

From WikiTI
Jump to: navigation, search
(Comments)
(83, not 83Plus; fixed links; note RST 08h)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
[[Category:83Plus:BCALLs:By Name|OP1toOP2]]
+
[[Category:83:ROMCalls:By Name|OP1toOP2]]
[[Category:83Plus:BCALLs:By Name:Utility|OP1toOP2]]
+
[[Category:83:ROMCalls:By Name:Utility|OP1toOP2]]
[[Category:83Plus:BCALLs:By Address|418E - OP1toOP2]]
+
[[Category:83:ROMCalls:By Address|418E - OP1toOP2]]
 
== Synopsis ==
 
== Synopsis ==
 
'''Official Name:''' OP1toOP2
 
'''Official Name:''' OP1toOP2
  
'''BCALL Address:''' 418E
+
'''Call Address:''' 418E or 0008
  
Copies the contents of [[83Plus:RAM:8478|OP1]] to [[83Plus:RAM:8478|OP2]]
+
Copies the contents of [[83:RAM:8039|OP1]] to [[83:RAM:8044|OP2]]
  
 
=== Inputs ===
 
=== Inputs ===
Line 13: Line 13:
  
 
=== Outputs ===
 
=== Outputs ===
* [[83Plus:RAM:8478|OP2]]: equals [[83Plus:RAM:8478|OP1]]
+
* [[83:RAM:8044|OP2]]: equals [[83:RAM:8039|OP1]]
  
 
=== Registers Destroyed ===
 
=== Registers Destroyed ===
* BC, DE, HL
+
* F, BC, DE, HL
  
 
== Comments ==
 
== Comments ==
Not really useful except to save space. Writing your own routine to copy [[83Plus:RAM:8478|OP1]] to [[83Plus:RAM:8478|OP2]] will probably be faster.
+
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