Commit graph

71 commits

Author SHA1 Message Date
crc
3f063a7a05 update python implementation to support image changes
FossilOrigin-Name: bd8f98ee3677556c37efd199bed4d188f64b2c2119761a5351dc5c4778ac480d
2021-10-08 09:47:26 +00:00
crc
5cd2fae3b3 update python image
FossilOrigin-Name: 0f8825d5adca20a3570009ef951447a3acdc82bc814efe149fce6467b5d0d75d
2021-10-08 09:38:12 +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
c5ff4cafff python: fix amalgamation
FossilOrigin-Name: db466b93ad53691a0a605bdd1d11d361798863b7fc77676a6cca4b5657e20a42
2021-05-17 14:17:26 +00:00
crc
3eccfc2e30 back to work on 2021.4
FossilOrigin-Name: f6ac35e69a0ecb735ccf85337b6215bf1ef8c0ae529001957a25d5003302eaac
2021-02-18 16:12:22 +00:00
crc
b2119b0975 nga-python: work to tie in the UIDevice support
FossilOrigin-Name: d9521c6f5d140441b9f309ae68ae046dc92d3e2e67fa518e1d0b7ebae59531dd
2021-02-03 13:33:14 +00:00
crc
b1dce01d9d nga-python: add stubs for benchmark device (#28); add support for running under Python2 (for use w/pypy)
FossilOrigin-Name: 2b8e1c48bdb444f0b08f9813fa09493455f801e058146e75a27acb35a2907393
2021-02-03 12:54:42 +00:00
crc
6ea19bbdd2 nga-python: implement run length encoding for arbitrary value sequences in image (from Arland)
FossilOrigin-Name: 57120962dce31f709627ed2f3ea857b0fe56e662624dab27d16083e9fe79f9a7
2021-02-02 22:28:27 +00:00
crc
9912a4b501 nga-python: implement support for run length encoding in image (#44)
FossilOrigin-Name: a132117aafc756384eb9a63b55678fefa7020b8a07ded9121828bb09658d4770
2021-02-02 15:22:17 +00:00
crc
f7df9a3dee nga-python: fix for #46
FossilOrigin-Name: 9736425746a1db826cf588888d9ab48a4552d1a9a99aeaa297484a3c0c215af9
2021-02-02 14:41:36 +00:00
crc
9c93e766fc nga-python: latest code from Arland for Pythonista UI module support
FossilOrigin-Name: 027308b773f14441c3c74a15106c1b261cb32e3b3d96facf7ceb14353130852d
2021-02-01 00:45:55 +00:00
crc
77b2ccc463 nga-python: add decimal io device (#32)
FossilOrigin-Name: 4a0a1184f66f855840fa7229013d6b4b68026584dfc72906f3e4994fd346f3f6
2021-01-25 15:43:05 +00:00
crc
71a3eb4c31 nga-python: add stubs for UIDevice
FossilOrigin-Name: da665d515db5344f712895d9b5504caa9f049d1661b809a3f0af22b228e6935c
2021-01-25 15:08:17 +00:00
crc
1a360be9c8 nga-python: add stub file for Decmial IO device (#32)
FossilOrigin-Name: e8688c22e6021ae89f9a63687f9e62d8b4de17d3ae1df04932044428f90e8bc6
2021-01-25 14:55:19 +00:00
crc
3290bcadf5 nga-python: fix for #45
FossilOrigin-Name: 4f8214a52a2a3e7f1a5d8107b3e5cc6fcc8bcfdb4263c432e38b7270a5b23b7a
2021-01-22 19:36:31 +00:00
crc
1052e8a83c nga-python: fix a bug in include
FossilOrigin-Name: 90df732d68816e90c2767c398a07d80c82a65188ca580e9aafbb11442e902ce8
2021-01-21 02:50:05 +00:00
crc
aff0fb3c6e run black to reformat Python files
FossilOrigin-Name: 3b06a15e14d8f808dbefdde1d129a4f768f803fbb3ce7fe39a82e60ff7ed88e7
2021-01-20 17:41:34 +00:00
crc
962c64a3da fix a typo in retro.muri that caused the python version of muri to crash
FossilOrigin-Name: db919ab8d422f54421bc9f85df6218dd1264be8c244c4bc16818120e17a69bb1
2021-01-10 15:47:27 +00:00
crc
da436a5ef5 python: update retro-extend w/latest vm core, more fixes. Now generates a working image. (#34)
FossilOrigin-Name: 945846d37a65d91cb273416eb89b9131696a28a923ed82a75a547fb628d76ac8
2021-01-06 16:08:50 +00:00
crc
c0db7b267a nga-python: fix random number generator (forgot to import random module)
FossilOrigin-Name: 89b97f70b3f5ad1d1c9ed9d97cdb4fe99448a6b245611bc011fc4a66736ff345
2021-01-06 14:02:23 +00:00
crc
e551db2d83 nga-python: add d:words and related to default embedded image
FossilOrigin-Name: aac302474102db7351f1a1131ffbd61a015b14545c178c8b495f494dbc77d9eb
2020-12-29 19:47:07 +00:00
crc
680842f35a nga-python: run black to reformat code
FossilOrigin-Name: 8a6710e5ae7051775e4d9d9f6689f135a74efb6f101bd7940d7fcafc5cb73f4e
2020-12-29 19:10:33 +00:00
crc
b20eac2487 nga-python: fix bug
FossilOrigin-Name: 7654403921fad6941bf6dfb47e8b0bc5c32534224a24672955b037adaea10641
2020-12-28 15:24:14 +00:00
crc
676c09a9f8 nga-python: add a Makefile for the Python image, update embedded image to provide coverage for i/o devices
FossilOrigin-Name: 709420db0d18a7794c208ce4827bd0f948ec47789a672371001faa54f985b498
2020-12-28 14:21:43 +00:00
crc
71f1598033 nga-python: add -u and -i to the command line arguments processor (#33)
FossilOrigin-Name: e488943c77e9374b79a733321829ae4b2908bf12b25748ec7ac3f61466e7e053
2020-12-28 14:04:30 +00:00
crc
27289092f8 nga-python: use https when downloading an image
FossilOrigin-Name: fd6b6b6a570c40bc025df1cecc465ae80497f100173e67276c21cbdedcb9e1f3
2020-12-28 13:12:03 +00:00
crc
3dbab4061a nga-python: load & use embedded image (#33)
FossilOrigin-Name: 2775527083e92f7292440e98cb7e143d3760f0c8f779078684976eb4f3c0e371
2020-12-25 04:30:14 +00:00
crc
370868e4d3 nga-python: small adjustment to RNGDevice (from Arland)
FossilOrigin-Name: a1f3640101ce39fb0cba3ef893d0f9f5fe87ce20c463b085061a023449808609
2020-12-24 11:57:04 +00:00
crc
dac9ad177c nga-python: split i_fetch() to separate out the query handlers
FossilOrigin-Name: 5277a5509c0418c1a7eea301d0489e08264e7de0fcb50ceadba498a68077cd11
2020-12-23 16:16:32 +00:00
crc
ef52d0681d nga-python: run black to reformat code
FossilOrigin-Name: 2957a10f96df4dc0a9b6ca304d93e6c4331411706618c8c87deff34eeb3c36f5
2020-12-23 12:23:57 +00:00
crc
58e289d1fc nga-python: raise IndexError on invalid fetch address (#31)
FossilOrigin-Name: 40e85d0ae3d2223e1b465f782f8e4c4b93bc7c1ffad6615f569ebc6a357482e1
2020-12-23 12:21:35 +00:00
crc
84f5134687 nga-python: n:MIN and n:MAX queries now reporting a 128-bit range (#30) along with some comments regarding this
FossilOrigin-Name: 1998a44c226313a0e86b635f10fb6fb06ed6698fd62a75e81f1a6a22883ae125
2020-12-22 12:41:42 +00:00
crc
f05a03d167 nga-python: change i_fetch() to check for valid address, fetch first, before checking the negative query slots (#31)
FossilOrigin-Name: 5f371164d5d74121c018e9e60ffe550fa816d003a27691307ff41736c7a3a14a
2020-12-22 12:26:44 +00:00
crc
39b1d87c95 nga-python: math operations no longer restrict to 32-bits (#30)
FossilOrigin-Name: 892fafaef76c9b73b7f7990ebad39203a80d89b324d9830ee4b13178b989af6b
2020-12-22 05:23:29 +00:00
crc
6f6584401a nga-python: commit missing file (#29)
FossilOrigin-Name: 7ed4a0680dfb90e406462cea30758f4532f211e9b2ffb1129a6192d5a245ae5d
2020-12-22 02:28:15 +00:00
crc
8fed194207 nga-python: fix clock, rng devices (#8)
FossilOrigin-Name: c0ecba6ac7b2d06bb755f74092c11ed0de062bd23b83a616076c8c78a304b761
2020-12-21 20:38:44 +00:00
crc
ee5dbeecb5 nga-python: floating point working (#8)
FossilOrigin-Name: 870d97f7e4e28ccabbd3e835a5fff9b86416b7878a672f32b38226ec47ab9b8c
2020-12-21 20:34:27 +00:00
crc
3b15924f71 nga-python: fix a bug in the dictionary population code
FossilOrigin-Name: b1ac26066a2e64aaa7d1b929b7993844d330a244183b8a39911b97596a3380e7
2020-12-18 19:21:43 +00:00
crc
8eba61405d nga-python: fix a typo
FossilOrigin-Name: 63dc1a37b080b5acd531a771c920214601ff2595e11ebf7928f46074e2f0ae7b
2020-12-17 20:04:45 +00:00
crc
cf5df015e7 toolchain: add amalagamate tool for the Python implementation
FossilOrigin-Name: 2d0d2155c6aa3695d72dc2c594dd26200c7660839b4d66449d52696a91e6ce6d
2020-12-17 20:02:56 +00:00
crc
d185b6e423 nga-python: fix a bug in use of IntegerStack (#20)
FossilOrigin-Name: 42d2e7424dbb5d434a9123eed9976f81d6b920cd5beda654eb9ebcfe3a837091
2020-12-17 19:49:54 +00:00
crc
4e78a4ef15 nga-python: IntegerStack now derives from list (#20)
FossilOrigin-Name: 9cebb1e22b77545581e67fa6224286cba01a526684340452a858aa795b42af8c
2020-12-17 19:47:17 +00:00
crc
08a239f537 nga-python: watch calls to d:add-header to update the cached dictionary headers (#20)
FossilOrigin-Name: 55cd8f9b04907101e281c3e576b10e862b8c3b0c0bbfb4715637fb78b4cf68c2
2020-12-17 14:01:45 +00:00
crc
5efaf73271 nga-python: have Memory class inherit from list (#20)
FossilOrigin-Name: 36c77bdca28143d6a2928f9ea2b9dbb4003ef9e48fd61cddac0897af6f888e74
2020-12-17 13:21:35 +00:00
crc
e002be77a8 nga-python: reading files working now
FossilOrigin-Name: 23d2f2ffab871713281137c1645f797493aea0cbd450a00f86c550ce93a5a59e
2020-12-16 20:33:37 +00:00
crc
0cf0f63197 nga-python: begin work to fix file i/o device
FossilOrigin-Name: 41cf0e426d5ffe77d3b1e9c721da667a4bca14e8781f15f3d9f63decc70922c1
2020-12-16 20:14:07 +00:00
crc
bd0d879058 nga-python: use Python int() function in override for s:length (#20)
FossilOrigin-Name: 0094b5d63c75b5ded6b4f523ad9f3c54ac59e55072532a3158510a4b8426cdcb
2020-12-16 19:40:00 +00:00
crc
93290ac28d nga-python: use Python int() function in override for s:to-number (#20)
FossilOrigin-Name: 27e48826a02a254fab1e4ecc342a8f78b8ab2dff5769b96ae85e5147b04338fd
2020-12-16 19:25:52 +00:00
crc
640c63a7ef nga-python: use Python version of d:lookup for faster performance (#20)
FossilOrigin-Name: 72c3b945c4527b3896d3416c7a0d932f2dfcaf69845d6e6650fa021568a8e573
2020-12-16 19:21:18 +00:00
crc
68d2baa2bd nga-python: add populate_dictionary(), find_entry() now checks cached dictionary first (working on #20)
FossilOrigin-Name: 1229de35d262ac6cc1d7b6bde9477165548c5d4ebc35056c24ff8c864f1ac06a
2020-12-16 14:59:08 +00:00