You are browsing as a guest. Sign up (or log in) to start making projects!

1h 42m 43s logged

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.

0
4

Comments 0

No comments yet. Be the first!