Difference between revisions of "BCALLs Template"

From WikiTI
Jump to: navigation, search
(Flag Inputs)
(Code Used to Produce the Above)
Line 87: Line 87:
 
== Flag Inputs ==
 
== Flag Inputs ==
 
<ul>
 
<ul>
<li>bit exampleBit, (iy+demoBye): Set if something, reset otherwise
+
<li>bit exampleBit, (iy+demoBye): Set to do something, reset to do something else
 
<li>Parity: Set for something
 
<li>Parity: Set for something
 
</ul>
 
</ul>

Revision as of 21:00, 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. :)

Register Inputs

  • a: Page to look copy from
  • de: Address to copy to
  • hl: Address to copy from

Register Outputs

None.

Memory Inputs

  • (de): Address to copy a byte from
  • keyExtend: An example of a known RAM block.

Memory Outputs

  • (hl): Address to copy a byte to

Registers Destroyed

  • af

Flag Inputs

  • bit exampleBit, (iy+demoBye): Set to do something, reset to do something else
  • Parity: Set for something

Flag Outputs

  • Zero: Set if successful

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. :)

== Register Inputs ==
<ul>
<li>a: Page to look copy from
<li>de: Address to copy to
<li>hl: Address to copy from
</ul>

== Register Outputs ==
''None.''

== 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 ==
<ul>
<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 ==
 <nowiki>ld a,$08
ld de,$567A
ld hl,keyExtend
b_call SomeCall</nowiki>

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