Difference between revisions of "BCALLs Template"

From WikiTI
Jump to: navigation, search
Line 1: Line 1:
= Example of a BCALL Wiki =
 
If your BCALL is something simple, you may omit some (or all) of these sections and just give a Synopsis. Please provide as many sections as you can.
 
----
 
 
 
== Synopsis ==
 
== Synopsis ==
 
'''Official Name:''' SomeCall
 
'''Official Name:''' SomeCall
<br>'''BCALL Address:''' $4444
 
<br>This ROM Call does absolutely nothing since it doesn't exist. :)
 
  
== Inputs ==
+
'''BCALL Address:''' 0042
*a: Page to look copy from
+
*de: Address to copy to
+
*hl: Address to copy from
+
*(de): A byte is copied from here
+
*[[83Plus:RAM:keyExtend|keyExtend]]: An example of a known RAM block.
+
*bit exampleBit, (iy+demoBye): Set to do something, reset to do something else
+
*Parity: Set for something
+
  
== Outputs ==
+
This ROM Call does absolutely nothing since it doesn't exist. :)
*(hl): A byte is copied to here
+
*Zero: Set if successful
+
  
== Registers Destroyed ==
+
=== Inputs ===
*af
+
* a: Page to look copy from
 
+
* de: Address to copy to
== Example ==
+
* hl: Address to copy from
<nowiki>ld a,$08
+
* (de): A byte is copied from here
ld de,$567A
+
* [[83Plus:RAM:keyExtend|keyExtend]]: An example of a known RAM block.
ld hl,keyExtend
+
* bit exampleBit, (iy+demoBye): Set to do something, reset to do s omething else
b_call SomeCall</nowiki>
+
 
+
= Code Used to Produce the Above =
+
Please use this code as the starting point for all BCALL entries.
+
 
+
<nowiki>== Synopsis ==
+
'''Official Name:''' SomeCall
+
<br>'''BCALL Address:''' $4444
+
<br>This ROM Call does absolutely nothing since it doesn't exist. :)
+
 
+
== Inputs ==
+
*a: Page to look copy from
+
*de: Address to copy to
+
*hl: Address to copy from
+
*(de): A byte is copied from here
+
*[[83Plus:RAM:keyExtend|keyExtend]]: An example of a known RAM block.
+
*bit exampleBit, (iy+demoBye): Set to do something, reset to do something else
+
 
*Parity: Set for something
 
*Parity: Set for something
  
== Outputs ==
+
=== Outputs ===
 
*(hl): A byte is copied to here
 
*(hl): A byte is copied to here
 
*Zero: Set if successful
 
*Zero: Set if successful
  
== Registers Destroyed ==
+
=== Registers Destroyed ===
 
*af
 
*af
  
Line 58: Line 26:
 
ld de,$567A
 
ld de,$567A
 
ld hl,keyExtend
 
ld hl,keyExtend
b_call SomeCall&lt;/nowiki></nowiki>
+
b_call SomeCall</nowiki>
 
+
Please note the space in front of the &lt;nowiki> tag!
+

Revision as of 08:24, 25 March 2005

Synopsis

Official Name: SomeCall

BCALL Address: 0042

This ROM Call does absolutely nothing since it doesn't exist. :)

Inputs

  • a: Page to look copy from
  • de: Address to copy to
  • hl: Address to copy from
  • (de): A byte is copied from here
  • keyExtend: An example of a known RAM block.
  • bit exampleBit, (iy+demoBye): Set to do something, reset to do s omething else
  • Parity: Set for something

Outputs

  • (hl): A byte is copied to here
  • Zero: Set if successful

Registers Destroyed

  • af

Example

ld a,$08
ld de,$567A
ld hl,keyExtend
b_call SomeCall