Difference between revisions of "BCALLs Template"

From WikiTI
Jump to: navigation, search
(Code Used to Produce the Above)
Line 5: Line 5:
 
== Synopsis ==
 
== Synopsis ==
 
'''Official Name:''' SomeCall
 
'''Official Name:''' SomeCall
<br>'''BCALL Address:''' $4444
+
"'''BCALL Address:''' $4444
 
<br>This ROM Call does absolutely nothing since it doesn't exist. :)
 
<br>This ROM Call does absolutely nothing since it doesn't exist. :)
  
== Register Inputs ==
+
== Inputs ==
<ul>
+
*a: Page to look copy from
<li>a: Page to look copy from
+
*de: Address to copy to
<li>de: Address to copy to
+
*hl: Address to copy from
<li>hl: Address to copy from
+
*(de): A byte is copied from here
</ul>
+
*[[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
  
== Register Outputs ==
+
== Outputs ==
''None.''
+
*(hl): A byte is copied to here
 
+
*Zero: Set if successful
== Memory Inputs ==
+
<ul>
+
<li>(de): Address to copy a byte from
+
<li>[[83Plus:RAM:keyExtend|keyExtend]]: An example of a known RAM block.
+
</ul>
+
 
+
== Memory Outputs ==
+
<ul>
+
<li>(hl): Address to copy a byte to
+
</ul>
+
  
 
== Registers Destroyed ==
 
== Registers Destroyed ==
<ul>
+
*af
<li>af
+
</ul>
+
 
+
== Flag Inputs ==
+
<ul>
+
<li>bit exampleBit, (iy+demoBye): Set to do something, reset to do something else
+
<li>Parity: Set for something
+
</ul>
+
 
+
== Flag Outputs ==
+
<ul>
+
<li>Zero: Set if successful
+
</ul>
+
  
 
== Example ==
 
== Example ==
Line 59: Line 38:
 
<br>This ROM Call does absolutely nothing since it doesn't exist. :)
 
<br>This ROM Call does absolutely nothing since it doesn't exist. :)
  
== Register Inputs ==
+
== Inputs ==
<ul>
+
*a: Page to look copy from
<li>a: Page to look copy from
+
*de: Address to copy to
<li>de: Address to copy to
+
*hl: Address to copy from
<li>hl: Address to copy from
+
*(de): A byte is copied from here
</ul>
+
*[[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
  
== Register Outputs ==
+
== Outputs ==
''None.''
+
*(hl): A byte is copied to here
 
+
*Zero: Set if successful
== Memory Inputs ==
+
<ul>
+
<li>(de): Address to copy a byte from
+
<li>[[83Plus:RAM:keyExtend|keyExtend]]: An example of a known RAM block.
+
</ul>
+
 
+
== Memory Outputs ==
+
<ul>
+
<li>(hl): Address to copy a byte to
+
</ul>
+
  
 
== Registers Destroyed ==
 
== Registers Destroyed ==
<ul>
+
*af
<li>af
+
</ul>
+
 
+
== Flag Inputs ==
+
<ul>
+
<li>bit exampleBit, (iy+demoBye): Set to do something, reset to do something else
+
<li>Parity: Set for something
+
</ul>
+
 
+
== Flag Outputs ==
+
<ul>
+
<li>Zero: Set if successful
+
</ul>
+
  
 
== Example ==
 
== Example ==

Revision as of 20:35, 24 March 2005

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

Official Name: SomeCall "BCALL Address: $4444
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 something 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

Code Used to Produce the Above

Please use this code as the starting point for all BCALL entries.

== 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

== Outputs ==
*(hl): A byte is copied to here
*Zero: Set if successful

== Registers Destroyed ==
*af

== Example ==
 <nowiki>ld a,$08
ld de,$567A
ld hl,keyExtend
b_call SomeCall</nowiki>

Please note the space in front of the <nowiki> tag!