Welcome, Guest. Please login or register.


Author Topic: Assembler Tutorial (Read 2253 times)

Offline jonesypeter

  • Newbie
  • Posts: 15
  • Country: gb
  • OS:
  • Linux Linux
  • Browser:
  • Chrome 48.0.2564.95 Chrome 48.0.2564.95
    • View Profile
Assembler Tutorial
« on: 2016.February.16. 22:05:09 »
Hello,

Is there such a thing as an introductory text on assembly language for the Enterprise. I have done a small amount of z80 with the spectrum and cpc but can find nothing which is Enterprise specific especially in regard to the screen.

Would anyone be able to direct me to info on the screen memory and perhaps ROM calls with a simple example of filling the screen and left and right scrolls.

Also does anyone have the emulator file for the entersoft machine code tutorial tape? I looked at the accompanying PDF but it seems not to cover the screen.

Thanks very much.

Offline Zozosoft

  • EP addict
  • *
  • Posts: 13536
  • Country: hu
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 44.0 Firefox 44.0
    • View Profile
    • http://enterprise.iko.hu/
Re: Assembler Tutorial
« Reply #1 on: 2016.February.16. 22:55:20 »
For first look my SAMPLE.ASM

It is:
-EXOS call macro definition
-standard EXOS file header definition
-allocate video memory via EXOS
-allocate other memory via EXOS
-EXIT routine
-some settings at the start
-LPT definition for 320x200 4 color screen

Another example my Spectrum Loader, which is build similar configuration for a ZX 48K programs.

Offline jonesypeter

  • Newbie
  • Posts: 15
  • Country: gb
  • OS:
  • Linux Linux
  • Browser:
  • Chrome 48.0.2564.95 Chrome 48.0.2564.95
    • View Profile
Re: Assembler Tutorial
« Reply #2 on: 2016.February.16. 23:00:56 »
Thanks. I will take a look at this.

I notice there is an Hungarian assembly language book. Is there any chance anyone would consider translating this?  I'm happy to make a donation to the site or similar.

Thanks

Offline geco

  • EP addict
  • *
  • Posts: 5440
  • Country: hu
  • OS:
  • Linux Linux
  • Browser:
  • Firefox 38.0 Firefox 38.0
    • View Profile
Re: Assembler Tutorial
« Reply #3 on: 2016.February.17. 08:45:51 »
And here is a link about EXOS documentation, which contains Ninck and Dave description.


Offline jonesypeter

  • Newbie
  • Posts: 15
  • Country: gb
  • OS:
  • Linux Linux
  • Browser:
  • Chrome 48.0.2564.95 Chrome 48.0.2564.95
    • View Profile
Re: Assembler Tutorial
« Reply #4 on: 2016.February.17. 21:06:26 »
Is it possible to use pasmo or similar to assemble the example?

Offline Zozosoft

  • EP addict
  • *
  • Posts: 13536
  • Country: hu
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 44.0 Firefox 44.0
    • View Profile
    • http://enterprise.iko.hu/
Re: Assembler Tutorial
« Reply #5 on: 2016.February.17. 21:13:51 »
I'm using Sjasm 0.39

Offline jonesypeter

  • Newbie
  • Posts: 15
  • Country: gb
  • OS:
  • Linux Linux
  • Browser:
  • Chrome 48.0.2564.95 Chrome 48.0.2564.95
    • View Profile
Re: Assembler Tutorial
« Reply #6 on: 2016.February.17. 23:39:58 »
Hi. Would you be able to provide the full command line with parameters? Thanks

Offline IstvanV

  • EP addict
  • *
  • Posts: 4806
  • OS:
  • Linux Linux
  • Browser:
  • Firefox 39.0 Firefox 39.0
    • View Profile
Re: Assembler Tutorial
« Reply #7 on: 2016.February.18. 09:29:33 »
Usually, you do not need any command line options, just sjasm SAMPLE.ASM SAMPLE.COM. But here is the complete list of options (version 0.39g6):

sjasm [-options] sourcefile [targetfile [listfile [exportfile]]]

Option flags as follows:
  -l        Label table in listing
  -s        Generate .SYM symbol file
  -q        No listing
  -i<path>  Includepath

Offline Zozosoft

  • EP addict
  • *
  • Posts: 13536
  • Country: hu
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 44.0 Firefox 44.0
    • View Profile
    • http://enterprise.iko.hu/
Re: Assembler Tutorial
« Reply #8 on: 2016.February.18. 19:29:26 »
I notice there is an Hungarian assembly language book. Is there any chance anyone would consider translating this?
I think it is not too important :oops:
About the half of them are a general Z80 tutorial for beginners. Then small routines inserted to BASIC programs, later extending or hacking the IS-BASIC or EXOS.
If you want to write game or demo, then no any help in this book.

Because can you set up similar enviroment as CPC or ZX, then programing informations, graphics routines, etc can be used.
After your program started working then you can add some Enterprise extras, for example using different color palettes at different screen areas (or at every pixel line).

Offline jonesypeter

  • Newbie
  • Posts: 15
  • Country: gb
  • OS:
  • Linux Linux
  • Browser:
  • Chrome 48.0.2564.95 Chrome 48.0.2564.95
    • View Profile
Re: Assembler Tutorial
« Reply #9 on: 2016.February.18. 21:12:08 »
IstvanV. Thanks for the assembler help and also for the great emulator. Maybe you will develop further in the future? Any chance of a Raspberry Pi version?

Zorosoft. I'm afraid I'm not that advanced with assembler. I'm at filling a screen and scrolling left and right on the Spectrum. I thought it would be fun to try out something similar on the Enterprise but it seems that documentation for the less advanced user is not out there in English.

I did notice the book had been typed out so maybe I will give Google translate a go and see how I get on. Because sadly the Enterprise was not successful in the UK I suppose the lack of introductory texts is understandable.

Finally, does anyone have a link for Devpac? Thanks all.
« Last Edit: 2016.February.18. 21:23:33 by jonesypeter »

Offline ssr86

  • EP user
  • *
  • Posts: 359
  • Country: pl
  • OS:
  • Windows NT 6.2 Windows NT 6.2
  • Browser:
  • Firefox 44.0 Firefox 44.0
    • View Profile
Re: Assembler Tutorial
« Reply #10 on: 2016.February.18. 21:30:13 »
You can find an example of horizontal scrolling of a PIXEL screen here:https://enterpriseforever.com/programming/pixel-modes-screen-scroling/msg50908/#msg50908
I hope it could be useful. That was the first time for me to try and do scrolling...

Offline jonesypeter

  • Newbie
  • Posts: 15
  • Country: gb
  • OS:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 48.0.2564.103 Chrome 48.0.2564.103
    • View Profile
Re: Assembler Tutorial
« Reply #11 on: 2016.February.23. 19:31:29 »
I managed to find that someone had typed up the Machine Code book I was looking at, and with the help of Microsoft and Google translate I managed to pick up quite a bit. 

There are certain aspects which the translate tool seems to struggle with.  Would anyone be willing to help with small sections?

Thanks

http://www.ep128.hu/Ep_Konyv/Gepi_kod.htm

Offline geco

  • EP addict
  • *
  • Posts: 5440
  • Country: hu
  • OS:
  • Linux Linux
  • Browser:
  • Firefox 38.0 Firefox 38.0
    • View Profile
Re: Assembler Tutorial
« Reply #12 on: 2016.February.24. 08:42:22 »
Please write here which part of which section, I am sure you will get help.