Welcome, Guest. Please login or register.

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

Description:

0 Members and 1 Guest are viewing this topic.

Offline rednovaTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2007
  • Posts: 813
    • Show only replies by rednova
    • https://sites.google.com/site/rednova3d/
macro assembler worth it?
« on: September 30, 2008, 12:00:38 AM »
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 !!!

rednova
-mobilis in mobile-
 

Offline da9000

  • Hero Member
  • *****
  • Join Date: Mar 2005
  • Posts: 922
    • Show only replies by da9000
Re: macro assembler worth it?
« Reply #1 on: September 30, 2008, 12:09:49 AM »
You might want to get a book first, and at that, your local library most definitely will have a 68k book. There are also some great assemblers for free. Search on Aminet.
 

Offline TheMagicM

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2857
    • Show only replies by TheMagicM
    • http://www.BartonekDragRacing.com
Re: macro assembler worth it?
« Reply #2 on: September 30, 2008, 05:39:53 AM »
IMO?  NO.  Why limit yourself to 68k based systems?  C/C++ is the way to go on any Amiga OS (MorphOS, AROS, OS4).  
PowerMac G5 dual 2.0ghz/128meg Radeon/500gb HD/2GB RAM, MorphOS 3.9 registered, user #1900
Powerbook G4 5,6 1.67ghz/2gb RAM, Radeon 9700/250gb hd, MorphOS 3.9 registered #3143
 

Offline amigaksi

  • Hero Member
  • *****
  • Join Date: Dec 2006
  • Posts: 827
    • Show only replies by amigaksi
    • http://www.krishnasoft.com
Re: macro assembler worth it?
« Reply #3 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
 

Offline skurk

  • Hero Member
  • *****
  • Join Date: Dec 2006
  • Posts: 929
    • Show only replies by skurk
Re: macro assembler worth it?
« Reply #4 on: September 30, 2008, 07:31:23 AM »
Nope. Get one of the assemblers from Aminet, they are just as good (if not better)

I'm a bit stuck in the past, so I'm still using ASM-One

What are you going to code?  Utilities?  Demos?  Games?
Code 6502 asm or... DIE!!

[C64, C128, A500, A600, A1200, A3000, MBP+Mini, Efika/MOS2.1, Sam440 w/AOS4.1
 

Offline Magic-Merl

  • Full Member
  • ***
  • Join Date: Nov 2003
  • Posts: 229
    • Show only replies by Magic-Merl
Re: macro assembler worth it?
« Reply #5 on: September 30, 2008, 07:43:24 AM »
I'm with Skurk.

ASM-One is the one I owuld suggest.

Offline xeron

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 2533
    • Show only replies by xeron
    • http://www.petergordon.org.uk
Re: macro assembler worth it?
« Reply #6 on: September 30, 2008, 09:51:24 AM »
I recommend Asm-Pro, or PhxAss, depending on what kind of environment you wish to code in.
Playstation Network ID: xeron6
 

Offline countzero

  • Hero Member
  • *****
  • Join Date: Mar 2005
  • Posts: 1938
    • Show only replies by countzero
    • http://blog.coze.org
Re: macro assembler worth it?
« Reply #7 on: September 30, 2008, 10:04:27 AM »
hmm, interesting. Xeron, why would you recommend Asm-Pro over Asm-One ? (I'm not trying to start a flame war here, just to hear experts comments on different assemblers)

I use Devpac and it's great for beginner stuff I can say. It's not free though.
I believe in mt. Fuji
 

Offline xeron

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 2533
    • Show only replies by xeron
    • http://www.petergordon.org.uk
Re: macro assembler worth it?
« Reply #8 on: September 30, 2008, 10:23:51 AM »
I recommend Asm-Pro for the same reason the others recommended Asm-One i'd imagine, because i've used it for years and like it :-)

I find that if i switch to Asm-One i have to learn a different set of quirks and bugs to work around and i don't feel quite at home :)
Playstation Network ID: xeron6
 

Offline TheMagicM

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2857
    • Show only replies by TheMagicM
    • http://www.BartonekDragRacing.com
Re: macro assembler worth it?
« Reply #9 on: September 30, 2008, 03:21:41 PM »
I definitely wouldnt discount c/c++.   Look at the games ported to MorphOS and OS4.  Homeworld, Quake and others.. Ask how much code was written in assembler to handle sprites vs. c/c++ code.  It can be done and you'll lose less hair in the process.
PowerMac G5 dual 2.0ghz/128meg Radeon/500gb HD/2GB RAM, MorphOS 3.9 registered, user #1900
Powerbook G4 5,6 1.67ghz/2gb RAM, Radeon 9700/250gb hd, MorphOS 3.9 registered #3143
 

Offline Phantom

  • Hero Member
  • *****
  • Join Date: Feb 2006
  • Posts: 631
    • Show only replies by Phantom
    • http://l9memorial.if-legends.org/html/home.html
Re: macro assembler worth it?
« Reply #10 on: September 30, 2008, 03:27:14 PM »
I believe that if you will program something in a classic Amiga (68k) then the best solution to get 100% hardware optimization and more is definetely Assembly language.

If you are gonna start programming in newer platforms like MorphOS or AmigaOS 4.0 and beyond then C/C++ is the only option I pressume.
To Be A True Adventurer, You Ought To Play Real Text Adventures
 

Offline itix

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 2380
    • Show only replies by itix
Re: macro assembler worth it?
« Reply #11 on: September 30, 2008, 07:43:06 PM »
@TheMagicM

68k assembly still works in MorphOS and OS4... but definitely C is way to go if you wish to use your skills on other platforms in the future.

Anyway I would just get PhxAss from Aminet. It is free and it is good.
My Amigas: A500, Mac Mini and PowerBook
 

Offline da9000

  • Hero Member
  • *****
  • Join Date: Mar 2005
  • Posts: 922
    • Show only replies by da9000
Re: macro assembler worth it?
« Reply #12 on: October 03, 2008, 03:50:00 AM »
@Phantom:

ASM is *always* an option (since *almost all* compilers will eventually convert to binary/byte code, but before that they usually output an intermediate file, with guess what? assembly) - and of course machine code as well :-D