This lesson was a godsend. Months ago I was trying to use NP++, but couldn't get the def file to work. Nowhere did I see info about the necessity of renaming and saving, etc. the definition. Now it works!!! And just in case anyone ever asks about doing this on linux, I am using wine, of course.
Nearly lost me in the middle as I didn't put tabs before Notepad++ syntax...should have looked more closely! I get the feeling this is the start of a very long journey (albeit a rewarding one) :D
yes, I should have mentioned that. It's great that you commented on this. If we don't put the tab in there, the assembler will think it's a label, which we haven't done yet, but will probably do in the next episode.
this series was intended to give you an entry point into coding on the ZX Spectrum so that other tutorials will make more sense and you can go on to make full games if you want to.
there are no dumb questions! It seems logical doesn't it, but everything has to be done within the scope of the instruction set. Z80 is a very low level language, with a limited set of possible instructions, and putting values into memory in this way can only be done via the accumulator. It's also not possible to do the following: ld ($4000),b instead you have to do this: ld a,b ld ($4000),a One way to think of it as a series of pathways. The numbers can only move along certain pathways, so when you want to get them from one place to another, sometimes you have to use more than one single path.
This lesson was a godsend. Months ago I was trying to use NP++, but couldn't get the def file to work. Nowhere did I see info about the necessity of renaming and saving, etc. the definition. Now it works!!! And just in case anyone ever asks about doing this on linux, I am using wine, of course.
glad it helped! The tutorial videos have now switched to live coding on Twitch, with catch up videos on UA-cam via 'Amigos Stream Team'
Sorry for the delay Happy Coders! I hope this extended episode makes up for it :)
Thanks for this new video
Thank you for new video
Nearly lost me in the middle as I didn't put tabs before Notepad++ syntax...should have looked more closely! I get the feeling this is the start of a very long journey (albeit a rewarding one) :D
yes, I should have mentioned that. It's great that you commented on this. If we don't put the tab in there, the assembler will think it's a label, which we haven't done yet, but will probably do in the next episode.
❤
Whats the end result here apart from emulating code on a screen? Are you planning to load this unto a chip? That would do some magic?
this series was intended to give you an entry point into coding on the ZX Spectrum so that other tutorials will make more sense and you can go on to make full games if you want to.
I'm sorry for this dumb as hell question but rather than
ld a, $ff
ld ($4000), a
couldn't you just do
ld ($4000), $ff
there are no dumb questions!
It seems logical doesn't it, but everything has to be done within the scope of the instruction set. Z80 is a very low level language, with a limited set of possible instructions, and putting values into memory in this way can only be done via the accumulator. It's also not possible to do the following:
ld ($4000),b
instead you have to do this:
ld a,b
ld ($4000),a
One way to think of it as a series of pathways. The numbers can only move along certain pathways, so when you want to get them from one place to another, sometimes you have to use more than one single path.
Why org $8000. ?