Jump to content
Wally1

Assembly Language

Recommended Posts

Well

 

after some serious soul searching

 

I have decided to return to 6502

and not pursue 68000 assembly anymore.

 

To me, 6502 is much more elegant and more bang per byte.

 

All 56 instructions are 3 character symmetrical

and I can really wrap my noodle around its structure and stuff...

 

I was really barking up the wrong tree with 68K! {i couldnt' stand 'TRAP' or the arbitrary 3,4,5 character mnemonics and i really hated ADDQ instead of INX !}

 

And to share a side note with whoever is reading this

i was half asleep and my higher self (you can call that the subconscious or

the fact that the soul ascends to Heaven when we sleep, i.e. G-D)

 

was the determining factor that pretty much said to me:

 

'return to 6502'.

 

So there you have it.

 

I would love some feedback guys.

 

Edited by Wally1

Share this post


Link to post
Share on other sites

well AtariGeezer,

 

i actually read some people said that 68K codes it self (!)

 

and that it is orthogonal (right-angled) and it was one of the more

favored ASM Languages, it was preferred.

 

but all i know what my instincts tell me

 

and if Star Raiders can be developed in 8 measly kilobytes

than i wanna be on that gravy train!

 

yeah Abacus makes good books

 

 

Edited by Wally1

Share this post


Link to post
Share on other sites

My first experience with an assembler was on the XL and its 6502c. Few years later I switched to the ST and 68k.

Both assemblers have their own pros and cons. Like 65xx - simple instructions or fast interrupts, and 68k - instruction flexibility and functionality (like dbra loop, trap), 32bit math and a lot of registers.

 

I like them both.

 

now thanks to @necrocia I'm back with 6502

Edited by Cyprian_K
additional informations
  • Like 1

Share this post


Link to post
Share on other sites

I don't think that forcing 3 character long mnemonics for CPU with much more instructions than some old (even for 1982) CPU like 6502 would be good idea.

Motorola's mnemonics where little strange for me after Z80 ones. Like why move instead ld - not just longer, by actually not correct by my knowledge. Move means moving from one place to other, so that it is moved from origin. But that happens not with move instructions, they are copy in fact. Load (ld) is more proper.

But mnemonics are just what their name says - for easier remembering and working with.

I like 68000 ASM, and use it over 30 years. There is lot of operations, and that's good for code efficiency, but needs some time to get in, and be able to make good code. Good assembler helps a lot. Devpac was most popular, I would say with good reason.

 

I coded before it on Z80. And not only me. I saw traces of old, Z80 coding habit in many SW.

They used: 

  move  address,d0
  tst  d0

  Or even worse:
  move address,d0
  cmp #0,address

  

 But no need for any further test after move. Move to data register with 68000 sets flags too, according to value transferred.

In this example I did not add size (b, w or l) because it depends not from size, of course.

Share this post


Link to post
Share on other sites

CyprianK

 

what did necrocia do to make you go back to 6502?

 

 

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...