Atari ST Knowhow Workshop 4

From syn2cat - HackerSpace.lu
(Difference between revisions)
Jump to: navigation, search
m (Undo revision 18378 by Kwisatz (talk))
 
(20 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{Event
 
{{Event
|attendees=Sid,  
+
|attendees=Sid, Kwisatz
 
|eventtype=Workshop
 
|eventtype=Workshop
 
|subtitle=assembler and hardware
 
|subtitle=assembler and hardware
Line 12: Line 12:
 
|logo=Atari_1040STf.jpg
 
|logo=Atari_1040STf.jpg
 
|highres=Atari_1040STf.jpg
 
|highres=Atari_1040STf.jpg
|announce=on
+
|announce=
 
|cost=0 EUR
 
|cost=0 EUR
 
|url=http://wiki.hackerspace.lu/wiki/AtariSTknowhow
 
|url=http://wiki.hackerspace.lu/wiki/AtariSTknowhow
|u19=on
+
|u19=
 
|keywords=atari st demo oldschool programming
 
|keywords=atari st demo oldschool programming
 
}}
 
}}
Have your emulator with assembler setup ready!
+
==Have your emulator with assembler setup ready!==
  
Howto: download hatari, download TOS, download turboass and devpac
+
Howto:
Copy programming examples of workshop2 (lusitania) and workshop3 (git)
+
* download hatari. It is usually in the linux repositories, but you can also get the newest release at http://hatari.tuxfamily.org/download.html
 +
* download TOS. Hatari ships with emuTOS which should be ok, but a real TOS you can find via google http://bit.ly/waBToz
 +
* download [https://sites.google.com/site/stessential/development/turbo-assembler-bugaboo turboass] and [https://sites.google.com/site/stessential/development/devpac devpac]
 +
* Copy programming examples of workshop2 (share on lusitania) and workshop3 ([https://source.hacker.lu/projects/atari-st-knowhow/repository git])
 +
 
 +
* Copy all that into a folder, that will be your Atari root filesystem C:
 +
* start hatari, if you don't want emuTOS, press F12 -> ROM and browse to your downloaded TOS. Back to main menu -> Reset -> OK
 +
* to assign the Atari root harddisk folder: F12 -> hard disks -> Gemdos drive browse & [x] Boot from HD
 +
* change ST to medium rez: Options -> set preferences(voreinstellungen)... -> Medium(Mittel) -> OK
 +
* double clik on C, now you should see the turboass and devpac you have put in that directory. Try to start them
 +
* load any source. Assemble: includes may be in the wrong place, adapt the path.
 +
* Character issues: sometimes (e.g. swiss french keyboard) you cant type a \ : F12->keyboard -> [x] Scancode
 +
* for bigger projects like paradist you need more ram: F12 -> Memory -> 2MiB
 +
 
 +
* save config -> hatari.cfg (so next time you have all these settings correct)
 +
 
 +
 
 +
==Topics:==
  
 
*  programming the 68000 in assembler (using turboass or devpac)
 
*  programming the 68000 in assembler (using turboass or devpac)
Line 39: Line 56:
 
** the mystery of digital sound output
 
** the mystery of digital sound output
 
** other trickery by writing directly to hardware
 
** other trickery by writing directly to hardware
 +
 +
==Ressources==
 +
These will be useful for today but also for future workshops. If you want to craft your own demo you will need grafics and sound in it.
 +
* Fonts for scrollers http://cgi.algonet.se/htbin/cgiwrap?user=guld1&script=fonts.pl .
 +
To convert the GIF into degas format use ppmtopi1 from the linux netpbm tools (or [http://www.xnview.com/ XnView] on windows
 +
* Other grafics you can draw on your own or convert from existing sources. Then reduce them to 16 colors (except if creating more advanced demos) and then convert them to degas format as above.
 +
* Music is usually a little routine you call 50 times a second. You can get those from the [http://sndh.atari.org/download.php Sndh archive]. Those tunes can be directly played by several [http://sndh.atari.org/players.php music players]. Most tunes are packed with the ICE packer, which is complicating things to use in assembler. Easiest is to unpack them first. Or just use the tunes which are not packed :-) How to play: soon.

Latest revision as of 17:49, 10 March 2012

Note: this article is about a passed event.
Add your Event
Workshop.png
Atari ST Knowhow Workshop 4
assembler and hardware
Atari 1040STf.jpg
Type of Event: Workshop
From: 2012/03/10 15:00
Till: 2012/03/10 18:00
Recurring: no
Organizer: syn2cat
Cost: 0 EUR0 $
0 £
0 CHF
Mandatory registration:
Website: http://wiki.hackerspace.l...
Attendees: Sid, Kwisatz
Log-in to RSVP
Contact Person(s): Gunstick (mail)
Keywords: atari st demo oldschool programming
Location
Where: Hackerspace, Strassen (11, rue du Cimetière, L-8018 Strassen, Luxembourg)
Map:
Loading map...
Tools
QrCode: QR-b254b0c5055309c8dda679bb1870e8c1.png
Add to your calendar: Download … further results
Alternate picture: None
Announce globally:
Getting into the detail to make the hardware do what you want



[edit] Have your emulator with assembler setup ready!

Howto:

  • Copy all that into a folder, that will be your Atari root filesystem C:
  • start hatari, if you don't want emuTOS, press F12 -> ROM and browse to your downloaded TOS. Back to main menu -> Reset -> OK
  • to assign the Atari root harddisk folder: F12 -> hard disks -> Gemdos drive browse & [x] Boot from HD
  • change ST to medium rez: Options -> set preferences(voreinstellungen)... -> Medium(Mittel) -> OK
  • double clik on C, now you should see the turboass and devpac you have put in that directory. Try to start them
  • load any source. Assemble: includes may be in the wrong place, adapt the path.
  • Character issues: sometimes (e.g. swiss french keyboard) you cant type a \ : F12->keyboard -> [x] Scancode
  • for bigger projects like paradist you need more ram: F12 -> Memory -> 2MiB
  • save config -> hatari.cfg (so next time you have all these settings correct)


[edit] Topics:

  • programming the 68000 in assembler (using turboass or devpac)
    • instructions
    • the ULM intro code to get quickly started
  • specificity of the Atari ST hardware (workshop 1, from the programmer's view)
    • where's my screen memory
    • memory mapped hardware
  • smooth scrolling howto (recall workshop 2?)
    • word and byte scrollers
    • bit scroller
    • be creative
  • color cycling effects (workshop 2 again)
    • need some drawing skills
    • more than 16 colors
  • tricking the ST hardware in other ways (as seen in workshop 3)
    • the mystery of digital sound output
    • other trickery by writing directly to hardware

[edit] Ressources

These will be useful for today but also for future workshops. If you want to craft your own demo you will need grafics and sound in it.

To convert the GIF into degas format use ppmtopi1 from the linux netpbm tools (or XnView on windows
  • Other grafics you can draw on your own or convert from existing sources. Then reduce them to 16 colors (except if creating more advanced demos) and then convert them to degas format as above.
  • Music is usually a little routine you call 50 times a second. You can get those from the Sndh archive. Those tunes can be directly played by several music players. Most tunes are packed with the ICE packer, which is complicating things to use in assembler. Easiest is to unpack them first. Or just use the tunes which are not packed :-) How to play: soon.
Personal tools
Namespaces

Variants
Actions
Navigation
syn2cat
Hackerspace
Activities
Initiatives
Community
Tools
Tools