Welcome, Guest. Please login or register.

Author Topic: macro assembler worth it?  (Read 2829 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline amigaksi

  • Hero Member
  • *****
  • Join Date: Dec 2006
  • Posts: 827
    • Show all replies
    • http://www.krishnasoft.com
Re: macro assembler worth it?
« on: September 30, 2008, 07:30:36 AM »
>by rednova on 2008/9/29 19:00:38
>
>Hi:
>
>I found macro assembler for sale on ebay. Is it worth the buying? I never coded in assembler before, but I would like to learn. Thanks !!!

Yeah, it's worth it if your going to do something on the Amiga that requires exact timing or optimization.  If you were going to show 30 sprites within 40 microseconds to simulate particle motion or something like that, you wouldn't want to use C.  It would be too difficult figuring out how many cycles a function call takes for example to set the palette within the HBLanking period unless you wrote something like:

      Move   #16-1,D1
      Move.l   #$DFF180,A0   ;hardware color register #0
      Clr.w   D0
SetPalette:   Move   D0,(a0)+
      Add.w   #$111,D0      ;next shade
      Dbra   D1,SetPalette

This following item also comes with simple 68K Assembler/linker and lets you bypass the Amiga OS so you have access to all the hardware resources:

http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=320306183586
--------
Use PC peripherals with your amiga: http://www.mpdos.com