Commit graph

282 commits

Author SHA1 Message Date
crc
e906676d22 retro-unix: the old TIB was hard coded, use the stored pointer at address 7 now.
this fixes a buffer overrun that caused the `err:notfound` header to be messed up.

i also policed some whitespace and removed obsolete comments in a few files.

FossilOrigin-Name: 4db7040fbc6a4f73e7da6a32de89de915aca6d33137afd04f8d5b3368612b214
2021-05-28 18:58:21 +00:00
crc
c2b9016d86 c:get is now vectored
FossilOrigin-Name: 29f8192c8a5290592bf646704ac339a807e8cc8de8776c3b9c4a089bf06a002e
2021-05-28 11:07:40 +00:00
crc
a423e0102c add entries for oftc & libera to irc notes
FossilOrigin-Name: 9cfb7453c6d520fe694d99e8e9c532ab990c0a0882057410cfb8eb3926580d49
2021-05-26 18:23:10 +00:00
crc
9e767e0a10 forgot to include aliases for the deprecated words
FossilOrigin-Name: 3f2761d7ce1c4d062e4dddc57a8908989acc900355f6822313ffa599d3bb7d04
2021-05-25 17:22:21 +00:00
crc
13ecc59a18 deprecate s:split, s:split-on-string. Use s:split/char and s:split/string instead.
FossilOrigin-Name: 8514ad5c60cc7c2f34ffd651bd74f477a582d04609b3bba546a1c702963fae94
2021-05-25 14:35:26 +00:00
crc
12636a7a97 nga-swift: add Xcode project for command line target
FossilOrigin-Name: d7b9a81c3ebf00176ab2beccb8c9761b3ecce6d829ec5d04deac34bc96efe8fb
2021-05-19 11:26:18 +00:00
crc
62275e377d nga-swift: rename Nga.swift
FossilOrigin-Name: ab552b73de922056ef45dab3260c40918163c00702ba9fa04611c944e23173a8
2021-05-19 11:24:39 +00:00
crc
c3adf4c594 reduce kernel by 3 cells
FossilOrigin-Name: e551008a2d0fddeb2c5a85c0434c1f6b201e800f590a9f1ff26f1612ae4ca29d
2021-05-18 19:59:11 +00:00
crc
cb22c59b5a add support multiple bases
This set of patches:

- adds a `Base` variable
- adds `decimal`, `hex`, `octal`, and `binary`
- extends `s:to-number` to support `Base`
- extends `n:to-string` to support `Base`
- updates the glossary to cover these

Additionally:

- removes the 1024 cell limit for the kernel
- adds a header cell (7) for the start of the text input buffer
- adds a header cell (8) for the end of the text input buffer
- updates most Nga implementations that use the text input buffer to look at
  this instead of hard coding the address

FossilOrigin-Name: 391ad6fc0187e5ff3089d5c42d5d5e1c18fd0b2379c90a148ba44bb66145f020
2021-05-18 19:42:35 +00:00
crc
4a63074a63 nga-c: include stdint.h
FossilOrigin-Name: acf4dbeadd2cea4c7fd55d58f2b0cdde5b5d64171fe4bda1554d1baf82371381
2021-05-18 13:46:28 +00:00
crc
c45816157f work on the retro-compiler
specifically:

- remove old runtime implementation
- use the standard retro.c as basis of new runtime
- remove old files
- update Makefile

this does not address issue #3.

FossilOrigin-Name: 959bab6910c41cd3ce24bf46d3b9b61bb83864edb25afc5148e7023ffd58fbf5
2021-05-18 12:42:15 +00:00
crc
27c074fa00 in which many things change...
- the basic image now contains a minimal listener
- new repl.c uses the embedded listener rather than
  implementing the listener in C
- removed barebones.c as it's no longer needed (overlapped
  w/repl.c)
- removed retro-unix.c (use retro.c instead)
- removed retro-windows.c (use retro.c instead)
- removed retro-image.c (use image.c instead)

FossilOrigin-Name: 21cea9bf556aef732fd9248de2debaf00dce24304a426c56392d503723728f43
2021-05-17 17:18:27 +00:00
crc
e28cacde80 examples: update variables-and-formulas to UTF8 (thanks to Marcus Antonius for this)
FossilOrigin-Name: 8b1de0465acc120e74c8de8e168ac8f737ac59ca3ec00bbb94424eb765b184b4
2021-05-17 14:40:07 +00:00
crc
c5ff4cafff python: fix amalgamation
FossilOrigin-Name: db466b93ad53691a0a605bdd1d11d361798863b7fc77676a6cca4b5657e20a42
2021-05-17 14:17:26 +00:00
crc
8aaff8c471 nga-c: small cleanups to i/o instruction handlers
FossilOrigin-Name: f2e489705e6cdc757e5aa3dba3cc1cb0fa592806209a9861452352264a6dde61
2021-05-17 14:15:28 +00:00
crc
f5bcba0fb9 nga-c: avoid a multiplication in the shift instruction
FossilOrigin-Name: de286be9c667c2f531b210f4f6b9a67b0adb7510a6f439b3890f2273e8fb90f2
2021-05-17 14:10:25 +00:00
crc
5509f7acdb nga-c: retro.c now uses new image changes to avoid needing to add in dictionary searches
FossilOrigin-Name: 7cea93908f51dd1803de48216833e0887719882783ed104a93cfa6069b203144
2021-05-17 13:16:56 +00:00
crc
0c3af65b97 image: address 6 now holds a pointer to err:notfound
FossilOrigin-Name: 25bd5c151592e0aa1ad4a6d8c326e33d2610836f21c0b587a8080a418e04bfe3
2021-05-17 13:09:52 +00:00
crc
ec2d0b13c9 retro.muri: address 5 is now a pointer to interpret
FossilOrigin-Name: 22ed95c6a44f68e92ddbc6e53cea8a6057a78f84e63d509c5e295db20b56afb3
2021-05-12 14:01:59 +00:00
crc
1be0d4b85f nga-nim: fix bug in shift instruction
FossilOrigin-Name: f7509ee85d3ab174afc4d7429761a9501cd282042b4b0714de1c6ed06b899a66
2021-04-30 17:00:38 +00:00
crc
8c441b820f whitespace cleanups, add back -h startup option
FossilOrigin-Name: aa18384826a4134b64001c9b64b15bfd84f1d1326e1613da8dbdcc6c7a3a3631
2021-04-30 15:09:01 +00:00
crc
763f06ac4c add if: and -if:
FossilOrigin-Name: 04cd5d82ce6ea0c9c98f05580bcb7cc2598c27accd6a648cacb98b063d72e1a5
2021-04-28 13:23:07 +00:00
crc
770f492359 prepare to begin work on 2021.7
FossilOrigin-Name: 95216e8fb2f2f27d6867ce34183b758eda029646f846ab982abf6e10997318c8
2021-04-28 13:06:30 +00:00
crc
f0257387d4 example: hiding words
FossilOrigin-Name: 6364b578975dd03353f9138725de9779bbf8e581607e5a4283b10ccb17f1cf82
2021-04-22 15:15:15 +00:00
crc
e82794ec72 nga-c: 64-bit builds should be working again
FossilOrigin-Name: 3a2a50361818026ba8b7e6d3082c6c44ae170b51801f329caf037aad0db1e9c9
2021-04-22 13:45:32 +00:00
crc
f90f4d02a2 nga-c: undefine NEEDS_STRL when building on macOS (should fix remaining part of #58)
FossilOrigin-Name: 02868ee48d5ab194f7a754bcc24c44664a4054571f4a3f41fd55562676b0ca9c
2021-04-21 12:00:17 +00:00
crc
3e3dfa9ddc nga-c: more fixes related to issue #58
FossilOrigin-Name: 20fcceb6ce817b2c94f11ca78e795923701d0c944049662597ab70cc0cc7dc03
2021-04-21 11:48:47 +00:00
crc
d183ac683e nga-c: work on fixing 64-bit builds (#58)
FossilOrigin-Name: e0cc2eb948780a910ec1dfe9d34783c8e9bacbbc1af3630749432e0f4217391f
2021-04-21 11:41:26 +00:00
crc
29bdd46091 nga-c: attempt to fix compiler warnings (issue #57)
FossilOrigin-Name: 7c306b487a9d688b74dc798fd4437b87e71ad9540cfa4d4c73fb2c43cf8f5751
2021-04-20 19:57:31 +00:00
crc
c392a9bfd5 interface/unix: reduce size of io:unix-syscall
FossilOrigin-Name: 74558b75eec0df5a42815a73158f82455cdcced3e8156fc175f81b44186520a8
2021-04-19 17:43:03 +00:00
crc
00f3e53a83 interface/scripting: refactor to reduce size
FossilOrigin-Name: a9419952603779684fcc5d626b394a66f17d8d5fa6d41a941c251da6b8b29506
2021-04-19 17:41:14 +00:00
crc
4d0c80823b interface/filesystem: smaller file:operation
FossilOrigin-Name: e000d1fab7c5b3cbab520a2a5e74bf299cc674edb8b5ebab3c26f6cd29571839
2021-04-19 17:38:47 +00:00
crc
98a6a30db9 interfaces/floatingpoint: smaller io:float-operation
FossilOrigin-Name: 05a362eea49314fe8f9d942c773be1685d845166a48f0201bfbd2e7af16829aa
2021-04-19 17:37:16 +00:00
crc
5ba34b60a9 interfaces/rng: smaller n:random, remove io:rng-operation
FossilOrigin-Name: 893637993c41b36f620410fe489d25d5cb9d08d41dd80f9097b3c193fd54cc92
2021-04-19 17:35:29 +00:00
crc
cd47df06c9 interfaces/clock: reduce size of clock:operation
FossilOrigin-Name: abb9e847ac79f6f8f1782afed5b85030984d4f5db0389932556fe21e1ce96f2b
2021-04-19 17:32:15 +00:00
crc
755f064f62 update Makefile to use new nga-c sources, fix amalgamate tool for changes
FossilOrigin-Name: 5837a410e388941d6cb5822732bcd3d003aa313af0d54c548c662883de01c164
2021-04-19 17:28:08 +00:00
crc
b543cd63f5 nga-c: start using the new codebase for default builds
FossilOrigin-Name: b37aa67e623301045afe2afce32812b914c790607571db70869d0d580f9ab6c8
2021-04-19 16:26:10 +00:00
crc
8ebb14d0de nga-c new: more refactoring, remove -s paramater; Also updates to main makefiles
FossilOrigin-Name: 38a2e92aa7a1ad0ca1974ad373acbb3896b56d81a4f01e621dda96f74dc363cd
2021-04-14 13:06:46 +00:00
crc
db1571d2f3 nga-c: new vm: add support for embedded image
FossilOrigin-Name: 6a34f9ce18e124e010668a9c2eaafe8d7aff3e5b35cb5fa67809f56abf9bb26a
2021-04-14 11:53:01 +00:00
crc
8d9e7c4cb7 nga-c: remove dev-image.c as a dependency (use retro only to implement image:save now)
FossilOrigin-Name: 089b89b28329b5ea8463df2c244b238e6ad8e28b73b5511dc649b7db31584158
2021-04-08 15:25:24 +00:00
crc
153a375fe9 nga-c: on retro-unix, default to a switch() based opcode processor (compile with -DFAST to enable on others)
FossilOrigin-Name: c797dd703b545b24c20ae29b26c46dc38a253181aeebb81ef22f1617622f12df
2021-04-08 13:14:05 +00:00
crc
6a4aaf8eac prefix: namespace is now sigil:, rename words, update examples, update docs
FossilOrigin-Name: 25cf19660ab7728d7bfee2722ea826a8a438faf92b2504b28d922d2958906aed
2021-03-30 11:58:25 +00:00
crc
e2a139c5fe add more detailed docs on i/o devices
FossilOrigin-Name: e1edc5e9f606b84404c4cbdd114d3cb338bf18aa10995db51cdcd49648621cb2
2021-03-29 12:55:25 +00:00
crc
e29fc3f0bc build with -DENABLE_SOCKETS to enable socket interface
FossilOrigin-Name: c189e61c1b84c8a6cd0089e0b9725fd70c798736a81cd20d38162193d0d05015
2021-03-21 01:08:22 +00:00
crc
9d57ca42e5 buffer: words use lowercase naming for all internal factors
FossilOrigin-Name: 64457add5efc4f86397144768c453d0f17b7107a1be4735ab98b743b1eb09ef8
2021-03-10 15:36:11 +00:00
crc
af3583e12a nga-816: pull latest changes from Piotr
FossilOrigin-Name: 4a42046dbc389b6d347e293894730d54fc4a0da8b0608385eba279be4f408810
2021-03-10 15:03:32 +00:00
crc
5c6cb04de3 nga-816: pull latest changes from Piotr
FossilOrigin-Name: e167f7458585daeb5f5174b45334a204fe02b525c4e897ba4ee709a57ff7ab17
2021-02-24 17:45:03 +00:00
crc
707274bb9b check in copy of Piotr Meyer's VM implementation for 65c816 as vm/nga-816
FossilOrigin-Name: a5c5ebaf691d78fc548dd7b69cd1f14f713abbf980a3f491f9321a9a6f14169e
2021-02-23 20:33:28 +00:00
crc
8cbd868004 add GNUmakefile to allow for corrected paths (based on patch from Siva Mahadevan)
FossilOrigin-Name: 0a12fea13320c8d4ca109a9f1022f371c9349ac66946046af545c4c59fef1338
2021-02-22 13:25:10 +00:00
crc
3eccfc2e30 back to work on 2021.4
FossilOrigin-Name: f6ac35e69a0ecb735ccf85337b6215bf1ef8c0ae529001957a25d5003302eaac
2021-02-18 16:12:22 +00:00