From b44a511ab24e2a8ef7f9ae909686384801645ab6 Mon Sep 17 00:00:00 2001 From: Tony Di Nucci <35197667+tdinucci@users.noreply.github.com> Date: Fri, 26 Apr 2019 17:36:54 +0100 Subject: [PATCH] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index d30a9de..271c84d 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,8 @@ There is 64KB of memory and this is broken into Resolution of the "attached display" is 64 * 64, so 4096 bytes. Each "pixel" is blown up to be 8 pixels in size so things are nice and blocky. +Writing a byte to 0xE000 will draw a pixel at the top left and at byte at 0xF000 will display at the bottom right. + Each pixel can be one of 256 colours where bits: * 0-1 are blue @@ -51,6 +53,8 @@ Each pixel can be one of 256 colours where bits: The last key pressed is stored to 0xF001 and it's up to your programs to clear this out after reading if you don't want to repeatedly read the same keypress. +SDL is used for reading key presses and the code for each key is https://wiki.libsdl.org/SDLScancodeLookup. Only key presses where the code is <= 0xFF are logged. + ## Sample The _sample/draw.s_ file contains well commented 6502 assembly code for a simple program which allows you to draw multi-coloured lines with your cursor keys. What fun!