6502 looks strange, but it's really simple when you learn the basics. (take a look at the LDA and STA instructions, e.g. LDX/STX/LDY/STY are for reading/writing memory (like peek/poke I guess?)
A 6502 assembly version of the code you typed would look kinda like this:
blar_blar = $00 ; (RAM location)
lda blar_blar ; load variable into A
cmp #1 ; compare A to 1
bne end_if ; if not equal, branch to the end_if label
hoooh oo (?? heheh)
Maybe you would want to take a look at NBASIC? It's similar to BASIC, but it probably would still be difficult to use without knowing some 6502 basics at least.