New feature π₯π₯π₯ β¨ THE SCREEN β¨ This was very very hard. The screen use the Unicode half-block character βββ, to write to the screen you just need to send value like this :
LDA #$02 ; load "02" into the accumulator
STA $0200 ; store it at memory address $0200 (the 1st pixel)
Here the 02 is the color RED.
Here is the color palette:
fn palette_color(index: u8) -> Color {
match index & 0x0F {
0 => Color::Black,
1 => Color::White,
2 => Color::Red,
3 => Color::Cyan,
4 => Color::Magenta,
5 => Color::Green,
6 => Color::Blue,
7 => Color::Yellow,
8 => Color::Rgb(255, 165, 0), // Orange
9 => Color::Rgb(153, 76, 0), // Brown
10 => Color::DarkGray,
11 => Color::Gray,
12 => Color::LightRed,
13 => Color::LightBlue,
14 => Color::LightGreen,
_ => Color::Reset, // 15 transparent
}
}
The color may vary between terminal theme.
I also had created an ASM program to print a rainbow on the 1st quarter of the screen.
I also added the feature that when a BRK instruction is hit the program turn to HALT mode (in the UI).
I also added the indentation system to BEQ, BNE, BCC, BCS, BMI, BPL, BVC, BVS.
I also added a new way of calculating the speed of the program.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.