Difference between revisions of "83Plus:BCALLs:8051"

From WikiTI
Jump to: navigation, search
m (Destroys: linkie)
m (addr -> name)
 
(One intermediate revision by one other user not shown)
Line 16: Line 16:
 
=== Destroys ===
 
=== Destroys ===
 
* All registers preserved
 
* All registers preserved
* Destroys contents of memory at [[83Plus:RAM:8100|8100]] (ramCode)
+
* Destroys contents of memory at [[83Plus:RAM:8100|ramCode]]
 +
* [[83Plus:RAM:8478|OP1]]
  
 
== Comments ==
 
== Comments ==

Latest revision as of 07:26, 26 April 2005

Synopsis

Official Name: LoadAIndPaged

BCALL Address: 8051

Reads a byte into register A on page A at address HL.

Inputs

  • A = page
  • HL = address

Outputs

  • A = byte read

Destroys

  • All registers preserved
  • Destroys contents of memory at ramCode
  • OP1

Comments

Simple enough to implement yourself if speed is important.

Example

 ld     a,0
 ld     hl,4000
 B_CALL LoadAIndPaged  ;should return a=DB (at least on OS version 1.18)