{"action":"created","issue":{"url":"https://api.github.com/repos/parallaxinc/spinsim/issues/4","repository_url":"https://api.github.com/repos/parallaxinc/spinsim","labels_url":"https://api.github.com/repos/parallaxinc/spinsim/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/parallaxinc/spinsim/issues/4/comments","events_url":"https://api.github.com/repos/parallaxinc/spinsim/issues/4/events","html_url":"https://github.com/parallaxinc/spinsim/issues/4","id":314311946,"number":4,"title":"new spinsim097 import && libraries and examples && .gitignore","user":{"login":"drawkula","id":9768622,"avatar_url":"https://avatars1.githubusercontent.com/u/9768622?v=4","gravatar_id":"","url":"https://api.github.com/users/drawkula","html_url":"https://github.com/drawkula","followers_url":"https://api.github.com/users/drawkula/followers","following_url":"https://api.github.com/users/drawkula/following{/other_user}","gists_url":"https://api.github.com/users/drawkula/gists{/gist_id}","starred_url":"https://api.github.com/users/drawkula/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drawkula/subscriptions","organizations_url":"https://api.github.com/users/drawkula/orgs","repos_url":"https://api.github.com/users/drawkula/repos","events_url":"https://api.github.com/users/drawkula/events{/privacy}","received_events_url":"https://api.github.com/users/drawkula/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-14T08:45:20Z","updated_at":"2018-04-14T11:47:56Z","closed_at":null,"author_association":"NONE","body":"```\r\n(yeti@kumari:15)/opt/spinsim/src/spinsim$ make\r\nmkdir -p ./build\r\nmake: *** No rule to make target 'disasm2.c', needed by 'all'.  Stop.\r\n```\r\nAdded `disasm2.c` from `spinsim097.zip`.\r\n```\r\n./build/pasmsim2.o: In function `ExecutePasmInstruction2':\r\n/opt/spinsim/src/spinsim/pasmsim2.c:3189: undefined reference to `sincos'\r\n/opt/spinsim/src/spinsim/pasmsim2.c:3174: undefined reference to `sqrt'\r\n/opt/spinsim/src/spinsim/pasmsim2.c:3175: undefined reference to `atan2'\r\n/opt/spinsim/src/spinsim/pasmsim2.c:3271: undefined reference to `log'\r\n/opt/spinsim/src/spinsim/pasmsim2.c:3289: undefined reference to `pow'\r\ncollect2: error: ld returned 1 exit status\r\nMakefile:40: recipe for target 'all' failed\r\nmake: *** [all] Error 1\r\n```\r\nAdded `-lm` to `LDFLAGS =` in `Makefile`.\r\n```\r\n(yeti@kumari:22)/opt/spinsim/src/spinsim$ make\r\nmkdir -p ./build\r\ngcc -lm -o ./build/spinsim ./build/spinsim.o ./build/spininterp.o ./build/spindebug.o ./build/pasmsim.o ./build/pasmdebug.o ./build/pasmsim2.o ./build/pasmdebug2.o ./build/eeprom.o ./build/debug.o ./build/gdb.o ./build/disasm2.o ./build/conion.o\r\n(yeti@kumari:22)/opt/spinsim/src/spinsim$ ./build/spinsim \r\nSpinsim Version 0.97\r\nusage: spinsim [options] file\r\nThe options are as follows:\r\n     -v# Set verbosity level\r\n     -l <filename>  List executed instructions to <filename>\r\n     -p  Use PASM Spin interpreter\r\n     -#  Execute # instructions\r\n     -P  Profile Spin opcode usage\r\n     -m# Set the hub memory size to # K-bytes\r\n     -t# Enable the Prop 2 mode.  # specifies options\r\n     -b# Enable the serial port and set the baudrate to # (default 115200)\r\n     -gdb Operate as a GDB target over stdin/stdout\r\n     -L <filename> Log GDB remote comm to <filename>\r\n     -r <filename> Replay GDB session from <filename>\r\n     -e Use eeprom.dat\r\n     -d Use debugger\r\n     -pst Use PST mode\r\n```\r\n\\o/\r\n\r\nBonus question: Can libraries (`conio.spin` and friends) and examples please be included too?\r\n\r\nIgnoring the `build` directory using a `.gitignore` line looks like a good idea too.\r\n"},"comment":{"url":"https://api.github.com/repos/parallaxinc/spinsim/issues/comments/381323602","html_url":"https://github.com/parallaxinc/spinsim/issues/4#issuecomment-381323602","issue_url":"https://api.github.com/repos/parallaxinc/spinsim/issues/4","id":381323602,"user":{"login":"dbetz","id":704214,"avatar_url":"https://avatars0.githubusercontent.com/u/704214?v=4","gravatar_id":"","url":"https://api.github.com/users/dbetz","html_url":"https://github.com/dbetz","followers_url":"https://api.github.com/users/dbetz/followers","following_url":"https://api.github.com/users/dbetz/following{/other_user}","gists_url":"https://api.github.com/users/dbetz/gists{/gist_id}","starred_url":"https://api.github.com/users/dbetz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbetz/subscriptions","organizations_url":"https://api.github.com/users/dbetz/orgs","repos_url":"https://api.github.com/users/dbetz/repos","events_url":"https://api.github.com/users/dbetz/events{/privacy}","received_events_url":"https://api.github.com/users/dbetz/received_events","type":"User","site_admin":false},"created_at":"2018-04-14T11:47:56Z","updated_at":"2018-04-14T11:47:56Z","author_association":"COLLABORATOR","body":"I think I just fixed the Windows build. I'm not familiar with spinsim so I don't know how to test any of these builds. Please post any problems."}}
{"actor":{"display_login":"dbetz"}}