From 9fe3a2d535559a8cc11b77ef5dace8cc22f96f4d Mon Sep 17 00:00:00 2001 From: Gabriel Sroka Date: Wed, 15 Nov 2023 12:35:02 -0800 Subject: [PATCH 1/3] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a4a7ab6..ce291e5 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,7 @@ void main() ## Provided Example Code -A few examples are provided that leverage the unique hardware aspects of the x86-16 IBM PC: +A few [examples](/examples) are provided that leverage the unique hardware aspects of the x86-16 IBM PC: - `examples/hello.c:` Print a text greeting on the screen writing to memory at 0xB8000 - `examples/sinwave.c:` Draw a moving sine wave animation with VGA Mode 0x13 using an appropriately bad approximation of sin(x) - `examples/twinkle.c:` Play “Twinkle Twinkle Little Star” through the PC Speaker (Warning: LOUD) @@ -127,7 +127,7 @@ expr = unary (op unary)? unary = deref identifier | "&" identifier | "(" expr ")" - | indentifier + | identifier | integer op = "+" | "-" | "&" | "|" | "^" | "<<" | ">>" | "==" | "!=" | "<" | ">" | "<=" | ">=" @@ -135,7 +135,7 @@ op = "+" | "-" | "&" | "|" | "^" | "<<" | ">>" In addition, both `// comment` and `/* multi-line comment */` styles are supported. -(NOTE: This grammar is 704 bytes in ascii, 38% larger than it's implementation!) +(NOTE: This grammar is 703 bytes in ascii, 38% larger than its implementation!) ## How? From ec2965e96c2d0c5d60cbee95694a949829909aec Mon Sep 17 00:00:00 2001 From: Gabriel Sroka Date: Mon, 20 Jan 2025 08:26:48 -0800 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ce291e5..0fd59a4 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ All of these features make it quite capable. For example, the following program animates a moving sine-wave: -``` +```c int y; int x; int x_0; From 199611c7391aeb1f16f1a79b1fb8ca036e688bea Mon Sep 17 00:00:00 2001 From: Gabriel Sroka Date: Fri, 24 Jan 2025 18:22:20 -0800 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0fd59a4..b4e078f 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,7 @@ unary = deref identifier | "(" expr ")" | identifier | integer -op = "+" | "-" | "&" | "|" | "^" | "<<" | ">>" +op = "+" | "-" | "*" | "&" | "|" | "^" | "<<" | ">>" | "==" | "!=" | "<" | ">" | "<=" | ">=" ```