Difference between revisions of "BCALLs Template"
From WikiTI
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
== Synopsis == | == Synopsis == | ||
'''Official Name:''' SomeCall | '''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 | |
− | + | * [[83Plus:RAM:keyExtend|keyExtend]]: An example of a known RAM block. | |
− | + | * bit exampleBit, (iy+demoBye): Set to do something, reset to do s omething else | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | *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 | + | |
*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 | + | b_call SomeCall</nowiki> |
− | + | ||
− | + |
Revision as of 07: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