2023-01-26 12:45:37 crc: i am trying to port your uploaded release to non-linux environment, how should i go about porting 2023-01-26 12:46:06 my os is kernel space only and have a serial interface, 2023-01-26 12:46:54 first, how can i embed the ngaImage to retro.c 2023-01-26 12:51:01 the full retroforth source uses retro-embedimage to generate the file to include 2023-01-26 12:51:02 http://fossils.retroforth.org:8000/nga/file?name=tools/retro-embedimage.c&ci=tip 2023-01-26 12:51:11 I 2023-01-26 12:53:39 retro-embedimage ngaImage > image.c 2023-01-26 12:55:22 let me try 2023-01-26 13:01:07 it creates CELL ngaImage[] 2023-01-26 13:01:23 then should i copy its content to memory in retro.c ? 2023-01-26 13:01:31 instead of load_image function 2023-01-26 13:02:25 yes 2023-01-26 13:02:37 something like (from vm/nga-c/retro.c): 2023-01-26 13:02:43 void load_embedded_image(NgaState *vm) { 2023-01-26 13:02:43 int i; 2023-01-26 13:13:54 ok 2023-01-26 14:34:03 what does mean inst_ii 2023-01-26 14:34:44 i am trying to disable stdin and want to give instruction by char* instead of it 2023-01-26 16:14:20 http://temp.retroforth.org/nga-barebones.tar.gz 2023-01-26 16:15:08 This has a minimal retroforth/nga, running input from a string (exiting when at the end of the string) and using embedded image data 2023-01-26 16:16:30 Look at the inst_ii() function to see how this is handled, the second part of the is (TOS == 1) handles the keyboard events, so you could alter this as needed 2023-01-26 16:20:03 The other option is to inject data directly into the text input buffer and call the interpret word in retro for each input token. The full RetroForth system does this (see the evaluate() function in vm/nga-c/retro.c for that) 2023-01-26 18:46:47 ii is the io instruction. It takes a value from the stack and uses that to decide which i/o device to invoke. Device 0 is always the display, the others can vary. The ie (i/o enumerate) and iq (i/o query) are used to figure out what a specific device implements. 2023-01-26 18:47:10 in the barebones setup, I use 1 as the i/o device for the 'keyboard' 2023-01-26 18:48:42 there's some coverage of this in the manual; see fossils.retroforth.org:8000/nga/file?name=doc/book/internals/io-devices&ci=tip and fossils.retroforth.org:8000/nga/file?name=doc/book/internals/io&ci=tip