Enterprise Forever

:UK => Programming => Topic started by: jonesypeter on 2016.February.16. 22:05:09

Title: Assembler Tutorial
Post by: jonesypeter 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.
Title: Re: Assembler Tutorial
Post by: Zozosoft on 2016.February.16. 22:55:20
For first look my SAMPLE.ASM (https://enterpriseforever.com/other-topics/maybe-we-should-organize-a-gamedevcompo/?action=dlattach;attach=14058)

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 (https://enterpriseforever.com/enterprise-devcompo-1-37/qa/msg51227/#msg51227), which is build similar configuration for a ZX 48K programs.
Title: Re: Assembler Tutorial
Post by: jonesypeter 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
Title: Re: Assembler Tutorial
Post by: geco on 2016.February.17. 08:45:51
And here is a link about EXOS documentation (http://ep.homeserver.hu/Dokumentacio/Konyvek/EXOS_2.1_technikal_information/), which contains Ninck and Dave description.

Title: Re: Assembler Tutorial
Post by: jonesypeter on 2016.February.17. 21:06:26
Is it possible to use pasmo or similar to assemble the example?
Title: Re: Assembler Tutorial
Post by: Zozosoft on 2016.February.17. 21:13:51
I'm using Sjasm 0.39
Title: Re: Assembler Tutorial
Post by: jonesypeter on 2016.February.17. 23:39:58
Hi. Would you be able to provide the full command line with parameters? Thanks
Title: Re: Assembler Tutorial
Post by: IstvanV 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
Title: Re: Assembler Tutorial
Post by: Zozosoft 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).
Title: Re: Assembler Tutorial
Post by: jonesypeter 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.
Title: Re: Assembler Tutorial
Post by: ssr86 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...
Title: Re: Assembler Tutorial
Post by: jonesypeter 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
Title: Re: Assembler Tutorial
Post by: geco on 2016.February.24. 08:42:22
Please write here which part of which section, I am sure you will get help.