diff --git a/Home.md b/Home.md index 1e47c8f..7857c22 100644 --- a/Home.md +++ b/Home.md @@ -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