Advertisement
plirof2

zmakebas, SNA notes

Jan 9th, 2023 (edited)
941
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. https://github.com/z00m128/zmakebas/blob/master/zmakebas.c
  2. portable emscripten https://github.com/kaizhu256/emsdk_portable , DOWNLOAD https://gsdview.appspot.com/webports/mirror/emscripten/
  3. convert WSM to JS https://rustwasm.github.io/wasm-bindgen/examples/wasm2js.html
  4.  
  5. _______________
  6. PAWS ZX adventure creators : https://www.ifwiki.org/Stable_authoring_systems
  7. Latest adventuron https://adventuron.io/betabeta/  (there is in archive.org an older version for local https://archive.org/details/adventuron-classroom-beta-68j )
  8. adventuron OLDER versions :(check for PAW) : https://web.archive.org/web/*/https://adventuron.io/classroom/
  9.  
  10. Tiny Computer 80 - https://tic80.com/
  11. _________________________
  12. https://stackoverflow.com/questions/36957821/sending-octet-stream-via-ajax
  13. ________________________
  14. JS
  15. https://stackoverflow.com/questions/70666337/how-do-i-convert-the-c-to-javascript
  16.  
  17. ________________________
  18.  
  19.  
  20. __________________________
  21. https://www.php.net/manual/en/ffi.examples-basic.php
  22.  
  23. <?php
  24. // create gettimeofday() binding
  25. $ffi = FFI::cdef("
  26.    typedef unsigned int time_t;
  27.    typedef unsigned int suseconds_t;
  28.  
  29.    struct timeval {
  30.        time_t      tv_sec;
  31.        suseconds_t tv_usec;
  32.    };
  33.  
  34.    struct timezone {
  35.        int tz_minuteswest;
  36.        int tz_dsttime;
  37.    };
  38.  
  39.    int gettimeofday(struct timeval *tv, struct timezone *tz);    
  40. ", "libc.so.6");
  41. // create C data structures
  42. $tv = $ffi->new("struct timeval");
  43. $tz = $ffi->new("struct timezone");
  44. // call C's gettimeofday()
  45. var_dump($ffi->gettimeofday(FFI::addr($tv), FFI::addr($tz)));
  46. // access field of C data structure
  47. var_dump($tv->tv_sec);
  48. // print the whole C data structure
  49. var_dump($tz);
  50. ?>
  51.  
  52.  
  53.  
  54.  
  55.  
  56. ________________________
  57.  
  58. ________________________
  59.  
  60.  
  61. __________________________
  62.  
  63.  
  64. ________________________
  65.  
  66. ________________________
  67. SNA hexedit info:
  68. first line starts at 0x00001CE6
  69. 0D : end of line eg 0D 00 0A is line 11  (00 0A is line number)
  70. 0D 00 0A
  71.  
  72. END of program ??? 0D 80 0D
  73.  
  74.  
  75. EG
  76. 00 0A 0A 00 20 F5     22 68 65 6C 6C 6F 22 0D
  77.    10          PRINT  "  h  e   l  l  o  "
  78. 00 0B 0C 00 20 F5     22 68 65 6C 6C 6F 31 31 22 0D
  79.    11          PRINT  "  h  e   l  l  o  1  1  "  
  80. 00 0C 05 00 20 EE     61 24 0D
  81.    12          INPUT   a  $
  82. 80 0D 80 20 EE 61 24 0D 80 20
  83. __________________________
  84. DEC codes for commands:
  85.             58: ":",
  86.             59: ";",
  87.             60: "<",
  88.             62: ">",
  89.             135: "PEEK$",
  90.             136: "REG",
  91.             137: "DPOKE",
  92.             138: "DPEEK",
  93.             139: "MOD",
  94.             140: "<<",
  95.             141: ">>",
  96.             142: "UNTIL",
  97.             143: "ERROR",
  98.             144: "ON",
  99.             145: "DEFPROC",
  100.             146: "ENDPROC",
  101.             147: "PROC",
  102.             148: "LOCAL",
  103.             149: "DRIVER",
  104.             150: "WHILE",
  105.             151: "REPEAT",
  106.             152: "ELSE",
  107.             153: "REMOUNT",
  108.             154: "BANK",
  109.             155: "TILE",
  110.             156: "LAYER",
  111.             157: "PALETTE",
  112.             158: "SPRITE",
  113.             159: "PWD",
  114.             160: "CD",
  115.             161: "MKDIR",
  116.             162: "RMDIR",
  117.             163: "SPECTRUM",
  118.             164: "PLAY",
  119.             165: "RND",
  120.             166: "INKEY$",
  121.             167: "PI",
  122.             168: "FN",
  123.             169: "POINT",
  124.             170: "SCREEN$",
  125.             171: "ATTR",
  126.             172: "AT",
  127.             173: "TAB",
  128.             174: "VAL$",
  129.             175: "CODE",
  130.             176: "VAL",
  131.             177: "LEN",
  132.             178: "SIN",
  133.             179: "COS",
  134.             180: "TAN",
  135.             181: "ASN",
  136.             182: "ACS",
  137.             183: "ATN",
  138.             184: "LN",
  139.             185: "EXP",
  140.             186: "INT",
  141.             187: "SQR",
  142.             188: "SGN",
  143.             189: "ABS",
  144.             190: "PEEK",
  145.             191: "IN",
  146.             192: "USR",
  147.             193: "STR$",
  148.             194: "CHR$",
  149.             195: "NOT",
  150.             196: "BIN",
  151.             197: "OR",
  152.             198: "AND",
  153.             199: "<=",
  154.             200: ">=",
  155.             201: "<>",
  156.             202: "LINE",
  157.             203: "THEN",
  158.             204: "TO",
  159.             205: "STEP",
  160.             206: "DEF FN",
  161.             207: "CAT",
  162.             208: "FORMAT",
  163.             209: "MOVE",
  164.             210: "ERASE",
  165.             211: "OPEN #",
  166.             212: "CLOSE #",
  167.             213: "MERGE",
  168.             214: "VERIFY",
  169.             215: "BEEP",
  170.             216: "CIRCLE",
  171.             217: "INK",
  172.             218: "PAPER",
  173.             219: "FLASH",
  174.             220: "BRIGHT",
  175.             221: "INVERSE",
  176.             222: "OVER",
  177.             223: "OUT",
  178.             224: "LPRINT",
  179.             225: "LLIST",
  180.             226: "STOP",
  181.             227: "READ",
  182.             228: "DATA",
  183.             229: "RESTORE",
  184.             230: "NEW",
  185.             231: "BORDER",
  186.             232: "CONTINUE",
  187.             233: "DIM",
  188.             234: "REM",
  189.             235: "FOR",
  190.             236: "GO TO",
  191.             237: "GO SUB",
  192.             238: "INPUT",
  193.             239: "LOAD",
  194.             240: "LIST",
  195.             241: "LET",
  196.             242: "PAUSE",
  197.             243: "NEXT",
  198.             244: "POKE",
  199.             245: "PRINT",
  200.             246: "PLOT",
  201.             247: "RUN",
  202.             248: "SAVE",
  203.             249: "RANDOMIZE",
  204.             250: "IF",
  205.             251: "CLS",
  206.             252: "DRAW",
  207.             253: "CLEAR",
  208.             254: "RETURN",
  209.             255: "COPY"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement