Usborne Z80 Machine Code for Beginners Part 5 - Speculate to Accumulate

Поділитися
Вставка
  • Опубліковано 11 січ 2025

КОМЕНТАРІ • 14

  • @curtisvaughan8955
    @curtisvaughan8955 2 роки тому

    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.

    • @HappyCodingZX
      @HappyCodingZX  2 роки тому

      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'

  • @HappyCodingZX
    @HappyCodingZX  3 роки тому

    Sorry for the delay Happy Coders! I hope this extended episode makes up for it :)

  • @zanclod
    @zanclod 3 роки тому

    Thanks for this new video

  • @HendrikBez
    @HendrikBez 3 роки тому

    Thank you for new video

  • @dataminedatamine6445
    @dataminedatamine6445 3 роки тому

    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

    • @HappyCodingZX
      @HappyCodingZX  3 роки тому +1

      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.

  • @anglija-england
    @anglija-england 9 місяців тому

  • @anglija-england
    @anglija-england 9 місяців тому

    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?

    • @HappyCodingZX
      @HappyCodingZX  9 місяців тому

      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.

  • @sandyollia4200
    @sandyollia4200 3 роки тому +1

    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

    • @HappyCodingZX
      @HappyCodingZX  3 роки тому +6

      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.

  • @anglija-england
    @anglija-england 9 місяців тому

    Why org $8000. ?