From ef23ccdc15913d5bbfbfc0e58d84049d7a06399e Mon Sep 17 00:00:00 2001 From: "matthias@arch" Date: Fri, 8 Dec 2023 00:13:50 +0100 Subject: [PATCH] update --- details.md | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/details.md b/details.md index 24b3be7..14c68e2 100644 --- a/details.md +++ b/details.md @@ -1,13 +1,19 @@ # Project details ## Address Space -### RAM: $0-$7fff -### (EEP)ROM: $8000-$ffff +|Name|From|To|r/w| +|---|---:|---:|:---:| +|ZEROPAGE |$00 |$ff |`rw`| +|STACK |$100 |$1ff |`rw`| +|RAM |$200 |$4fff |`rw`| +|SPI |$5000 |$5fff |`rw`| +|VIA1 |$6000 |$600f |`rw`| +|VIA2 |$7000 |$700f |`rw`| +|ROM |$8000 |$ffff |`r `| ## Naming conventions leading underscors `_` indicate a "private" label/variable, that is meant for internal use within the module only. ### Labels -- `namespace_fname` for exported subroutines -- `_namespace_fname` or `_namespace_fname_sub` for internal labels -- `(_)namespace_Macroname` -- `(_)NAMESPACE_SYMBOLNAME` for constant symbols -- `(_)NAMESPACE_symbolname` for variables +- **scopes**: snake case +- **subroutines** and **variables**: snake case (`scope::(_)fname_snake_case` or `scope::(_)varname_2`) +- **macros**: camel case (`(_)GoodMacroname`) +- **constants** (eg. in ROM): upper case (`scope::(_)NICE_SYMBOLNAME`)