Author Topic: New Z80 ASM tutorial  (Read 8318 times)

0 Members and 1 Guest are viewing this topic.

Offline bj

  • ZX 81
  • *
  • Posts: 20
  • Karma: 10
    • View Profile
New Z80 ASM tutorial
« on: November 06, 2009 »
I've posted a short tutorial on programming games in ZX Spectrum assembly language in the 'Tutorials' section of this board if anyone's interested.

Offline ninogenio

  • Pentium
  • *****
  • Posts: 1668
  • Karma: 133
    • View Profile
Re: New Z80 ASM tutorial
« Reply #1 on: November 06, 2009 »
hi big jon i havent seen you around before so welcome to the forum from me  :hi:,

im learning asm on the old speccy so this is definitly good for me i just had a read through and it looks like really good stuff k+.

i just got a divide as well so i will break your tutorial up diggest it and try it on the reall hardware.  :goodpost:
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17407
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: New Z80 ASM tutorial
« Reply #2 on: November 06, 2009 »
I have added the tutorial to the list that appears on the front page so that it can get more views :)

Thanks for posting it!
Shockwave ^ Codigos
Challenge Trophies Won:

Offline ferris

  • Pentium
  • *****
  • Posts: 841
  • Karma: 84
    • View Profile
    • Youth Uprising Home
Re: New Z80 ASM tutorial
« Reply #3 on: November 08, 2009 »
Very cool!! Nice to finally see some good tutorials for the Speccy :) It really is a cool old machine; wish it had as much online help as the C64.

Great job :)
http://iamferris.com/
http://youth-uprising.com/

Where the fun's at.
Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: New Z80 ASM tutorial
« Reply #4 on: November 08, 2009 »
Been a long, long time since I had a look at any Z80 code. Thanks bj!  Though I don't know how I might run this!

Va!n - you need to look a little harder, there are billions of Spectrum web sites out there :)

Jim
« Last Edit: November 08, 2009 by Jim »
Challenge Trophies Won:

Offline ninogenio

  • Pentium
  • *****
  • Posts: 1668
  • Karma: 133
    • View Profile
Re: New Z80 ASM tutorial
« Reply #5 on: November 08, 2009 »
@jim try basin its a free assembler/basic emulator from wos just pop open the built in assembler paste bj's tutorial instructions removing the main label as org needs to be the first instruction and the main label isnt refrenced anywhere. them click file->assemble->to memory.

then in the basic window randomize usr 33000 should do it as bj dosent reli on any basic.

@big jon excellent little game btw its very hard but fun and i have learned a fair few bits from your code.

@all does any one remember how to code a simple loader that will self run in basic once loaded and load diffrent parts of machine code into memory from a tap file like the specy games used to as thats how my divide needs the programs to be set out so i can transfer them from the pc to the speccy.
Challenge Trophies Won:

Offline bj

  • ZX 81
  • *
  • Posts: 20
  • Karma: 10
    • View Profile
Re: New Z80 ASM tutorial
« Reply #6 on: November 08, 2009 »
@jim try basin its a free assembler/basic emulator from wos
I wrote the tutorial for Spin it's coded by the same folks who wrote Basin, you can find it on worldofspectrum.org like all good Speccy stuff. They haven't got the assembler working properly in BASin yet, so Spin will work better.

Offline ninogenio

  • Pentium
  • *****
  • Posts: 1668
  • Karma: 133
    • View Profile
Re: New Z80 ASM tutorial
« Reply #7 on: November 08, 2009 »

They haven't got the assembler working properly in BASin yet, so Spin will work better.

ahh really, i have spin to but tbh i have never had any problems with BASin the assembler/emu has dealt with everthing i have thrown at it and the layout of BASin seems to suit me better but thats good to know bj thanks!
Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: New Z80 ASM tutorial
« Reply #8 on: November 08, 2009 »
I'll give that a shot.  SPIN is a great emulator.  Is there anything it can't do?

Jim
Challenge Trophies Won:

Offline bj

  • ZX 81
  • *
  • Posts: 20
  • Karma: 10
    • View Profile
Re: New Z80 ASM tutorial
« Reply #9 on: November 09, 2009 »
SPIN is a great emulator.  Is there anything it can't do?
When they release ZXSpin0.7, probably not!

http://www.worldofspectrum.org/forums/showthread.php?t=27204

Offline bj

  • ZX 81
  • *
  • Posts: 20
  • Karma: 10
    • View Profile
Re: New Z80 ASM tutorial
« Reply #10 on: November 28, 2011 »
Necro-bumping this thread to keep folks up to date:
World of Spectrum member Arjun has done a properly formatted html presentation of this tutorial at
http://chuntey.wordpress.com/

Also contrary to my most recent post on this thread, version 0.7 proved not to be the best version of the Spin emulator. I recommend using version 0.666. Cheers all,
Jon