Monday, November 21, 2016

Extending BASIC

Good article from Your Spectrum magazine (1984) regarding methods of extending ZX Spectrum BASIC.

Emulator for ZX Spectrum development


ZXSpin v0.7q - good emulator with good debugger and assembler.

Thursday, November 17, 2016

Wednesday, November 16, 2016

Interface 1bis file not found error

Purchased Interface 1 bis for the ZX Spectrum. 
There are plenty information about it and installing and preparing SD card on manufacturers site https://sites.google.com/site/interface1bis/ 
But I have encountered a problem - could not start it and was allways getting "file not found" error.
Did all steps described in troubleshooting video https://www.youtube.com/watch?v=QYHhWQyVWAU 
Loaded OpSys from PC using LOAD command, program loads OK. But when I do NEW and then RUN I get "file not found" error. 
Solution I found was that I had to repeat all prepare SD card steps, but additionally had to add comparability with Windows 8 (and run as administrator off course) option (I was running Windows 10) to LDCSetup.exe and later to the 'Prepare new card' utility.

So, In short - add Windows 8 compatibility to Interface 1 bis utilities.

Some links for ZX Assemlby programming

Making games in ZX Spectrum assembly book ( russian lang.):
http://zxpress.ru/book.php?id=2

How to write ZX Spectrum games tutorial in English:
https://chuntey.wordpress.com/2012/12/18/how-to-write-zx-spectrum-games-chapter-1/

Spectrum ROM routines:
http://skoolkit.ca/disassemblies/rom/asm/2852.html

Z80 instruction set:
http://clrhome.org/table/

Group in FB dedicated for Z80 assembly programming:
https://www.facebook.com/groups/z80asm/

WOS forum link:
http://www.worldofspectrum.org/forums/categories/assembler

Another forum (ru):
http://zx-pk.ru/forums/14-programmirovanie.html

Some more books (ru):
http://vtrdos.ru/

Thursday, September 15, 2016

Reading DHT22 and Light sensor data using NodeMCU dev board

Moved to http://asknotes.com/2016/09/15/reading-dht22-and-light-sensor-data-using-nodemcu-dev-board/

tmr.alarm not working on ESP12E 0.9.5 firmware

Tested that this sample was not working on dev board:

if not tmr.alarm(0, 5000, tmr.ALARM_SINGLE, function() print("hey there") end) then print("whoopsie") end

Checked firmware version (connected to ESPlorer and pressed reset):
ESP12E default NodeMCU 0.9.5 build 20150318  powered by Lua 5.1.4

Decided to update firmware. Found here that only 9.6 is available precompiled, later ones have to be costum built. Downloaded 9.6 files and uploaded them using ESP8266Flasher.exe

Checked firmware version then:
NodeMCU 0.9.6 build 20150704  powered by Lua 5.1.4

And tested this code sample:

if not tmr.alarm(0, 5000, tmr.ALARM_SINGLE, function() print("hey there") end) then print("whoopsie") end

It worked.