From 856a86a7f7796e34efaeada0dc11f771fedf2c67 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sat, 6 May 2023 21:48:32 +0100 Subject: Better format --- README.md | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 109ee7e..dd69390 100644 --- a/README.md +++ b/README.md @@ -132,17 +132,16 @@ The controller support d-pad with 4 directions, 2 action buttons, select and sta Read the port `0xf0` for the 8 1-bit flags reporting the state of the controller 1, and `0xf1` for controller 2. -``` -76543210 -|||||||\ a (fire 1) -||||||\ b (fire 2) -|||||\ d-pad up -||||\ d-pad down -|||\ d-pad left -||\ d-pad right -|\ select -\ start -``` +| Bits | Meaning | +| --- | --- | +| `0000000x` | a (fire 1) | +| `000000x0` | b (fire 2) | +| `00000x00` | d-pad up | +| `0000x000` | d-pad down | +| `000x0000` | d-pad left | +| `00x00000` | d-pad right | +| `0x000000` | select | +| `x0000000` | start | ### Palette -- cgit v1.2.3