Difference between revisions of "BCALLs Template"
From WikiTI
Line 1: | Line 1: | ||
= Example of a BCALL Wiki = | = 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. | ||
---- | ---- | ||
Line 31: | Line 32: | ||
<ul> | <ul> | ||
<li>af | <li>af | ||
+ | </ul> | ||
+ | |||
+ | == Flag Inputs == | ||
+ | <ul> | ||
+ | <li>bit exampleBit, (iy+demoBye): Set if something, reset otherwise | ||
+ | <li>Parity: Set for something | ||
+ | </ul> | ||
+ | |||
+ | == Flag Outputs == | ||
+ | <ul> | ||
+ | <li>Zero: Set if successful | ||
</ul> | </ul> | ||
Line 42: | Line 54: | ||
Please use this code as the starting point for all BCALL entries. | Please use this code as the starting point for all BCALL entries. | ||
− | <nowiki> | + | <nowiki>== Synopsis == |
− | == Synopsis == | + | |
'''Official Name:''' SomeCall | '''Official Name:''' SomeCall | ||
<br>'''BCALL Address:''' $4444 | <br>'''BCALL Address:''' $4444 | ||
Line 72: | Line 83: | ||
<ul> | <ul> | ||
<li>af | <li>af | ||
+ | </ul> | ||
+ | |||
+ | == Flag Inputs == | ||
+ | <ul> | ||
+ | <li>bit exampleBit, (iy+demoBye): Set if something, reset otherwise | ||
+ | <li>Parity: Set for something | ||
+ | </ul> | ||
+ | |||
+ | == Flag Outputs == | ||
+ | <ul> | ||
+ | <li>Zero: Set if successful | ||
</ul> | </ul> | ||
Revision as of 19:59, 24 March 2005
Contents
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 if something, reset otherwise
- 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 if something, reset otherwise <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!