Updated Home (markdown)

Michael 2016-01-15 04:30:09 -08:00
parent d96dd8765e
commit 3f1aeefcee
1 changed files with 4 additions and 2 deletions

@ -163,6 +163,7 @@ F436: 85 27 STA GBASH ; 0 pppfghcd pppfghcd eabab000
C code:
```c
y = ((address & 0x18) << 3) | ((address & 0x1c00) >> 10) | ((address & 0x380) >> 4);
int HGR_address_to_y( int address ) {
@ -170,6 +171,7 @@ int HGR_address_to_y( int address ) {
| ((address >> 4) & 0x38) // cde
| ((address >> 10) & 0x07);// fgh
}
```
# TEXT
@ -185,7 +187,7 @@ Given:
0000 abcd ---- ---- / 2
0000 00cd ---- ---- & 3
+ 0000 01cd ---- ---- | 4
```
---- ---- 000a bcde INPUT: Y
---- ---- 000a b000 & 0x18
---- ---- e00a b000 = temp
@ -195,7 +197,7 @@ Given:
+ ---- --00 eaba b000 | temp
= 0000 01cd eaba b000 Address
```
```assembly
FBC1: 48 577 BASCALC PHA ;CALC BASE ADR IN BASL,H