Author Topic: 8085 Assembler?  (Read 10595 times)

0 Members and 1 Guest are viewing this topic.

Offline firewalkerTopic starter

  • Super Contributor
  • ***
  • Posts: 2483
  • Country: gr
8085 Assembler?
« on: December 27, 2019, 11:03:16 am »
I have an 8085 training kit. Is there any free assembler for 8085?


Become a realist, stay a dreamer.

 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22435
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: 8085 Assembler?
« Reply #1 on: December 27, 2019, 11:33:37 am »
Shrug, I've got a copy of TASM 3.1 that supports several instruction sets, 8085 and Z80 among others (I was using it for Z80 when I was).  Seems a cromulent assembler, nothing special, no macros I think.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 
The following users thanked this post: firewalker

Online tggzzz

  • Super Contributor
  • ***
  • Posts: 23122
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: 8085 Assembler?
« Reply #2 on: December 27, 2019, 12:04:10 pm »
If you are keying it in on a hex keypad, you might as well convert the assembler to hex manually!
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Offline firewalkerTopic starter

  • Super Contributor
  • ***
  • Posts: 2483
  • Country: gr
Re: 8085 Assembler?
« Reply #3 on: December 27, 2019, 12:06:30 pm »
Yes I could! :D :D :D

Alexander.
Become a realist, stay a dreamer.

 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22435
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: 8085 Assembler?
« Reply #4 on: December 27, 2019, 12:41:46 pm »
A friend does exactly that, on his vintage dev board. ;D

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline firewalkerTopic starter

  • Super Contributor
  • ***
  • Posts: 2483
  • Country: gr
Re: 8085 Assembler?
« Reply #5 on: December 27, 2019, 12:49:45 pm »
The only one I found that seems promising is The Macro Assembler AS.

http://john.ccac.rwth-aachen.de:8000/as/

Alexander.
Become a realist, stay a dreamer.

 

Online jesuscf

  • Frequent Contributor
  • **
  • Posts: 504
  • Country: ca
Re: 8085 Assembler?
« Reply #6 on: December 28, 2019, 08:51:48 am »
Baaaack in the day, I used asm80 and plm80 to write programs for the 8085 microprocessor in an Intel MDS running the ISIS II "operating system" (with 8" floppy disks!).  Those compilers worked at some time under DOS.  Apparently the tools are recreated/recompiled here for modern operating systems (I hadn't tested them):

https://github.com/ogdenpm/intel80tools

Bitsavers has documentation for all those tools:

http://www.bitsavers.org/pdf/intel/ISIS_II/

If you search deep enough, you may be able to find the original asm80 for ISIS together with an ISIS emulator that would probably run on DOSbox.

Homer: Kids, there's three ways to do things; the right way, the wrong way and the Max Power way!
Bart: Isn't that the wrong way?
Homer: Yeah, but faster!
 
The following users thanked this post: firewalker

Offline GeorgeOfTheJungle

  • Super Contributor
  • ***
  • !
  • Posts: 2699
  • Country: tr
Re: 8085 Assembler?
« Reply #7 on: December 28, 2019, 10:36:35 am »
https://www.asm80.com/
http://duckduckgo.com/?q=8085+online+assembler

For the 6502, there's one online that can even upload to the Apple II via the cassette port :-)
The further a society drifts from truth, the more it will hate those who speak it.
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 10091
  • Country: us
Re: 8085 Assembler?
« Reply #8 on: December 28, 2019, 04:47:58 pm »
There are CP/M 2.2 emulators around and they may include MAC, the Digital Research Macro Assembler.  They will almost certainly include ASM80, the standard assembler.
 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 17830
  • Country: fr
Re: 8085 Assembler?
« Reply #9 on: December 28, 2019, 05:23:38 pm »
Speaking of CP/M, some may like this:

http://www.cpm.z80.de/source.html
 
The following users thanked this post: oPossum

Offline westfw

  • Super Contributor
  • ***
  • Posts: 4668
  • Country: us
Re: 8085 Assembler?
« Reply #10 on: December 28, 2019, 07:01:17 pm »
Quote
Is there any free assembler for 8085?
Don't forget that the 8085 is essentially just an 8080 internally, with only two extra instructions (RIM, SIM)8080 assemblers are pretty common.
 
The following users thanked this post: firewalker

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: 8085 Assembler?
« Reply #11 on: December 28, 2019, 10:46:56 pm »
I haven't tried it. I cannot offer any feedback.
If you dare experimental stuff, you can try this  :D
 
The following users thanked this post: firewalker

Offline firewalkerTopic starter

  • Super Contributor
  • ***
  • Posts: 2483
  • Country: gr
Re: 8085 Assembler?
« Reply #12 on: December 28, 2019, 11:05:30 pm »
Quote
Is there any free assembler for 8085?
Don't forget that the 8085 is essentially just an 8080 internally, with only two extra instructions (RIM, SIM)8080 assemblers are pretty common.

If my understanding is correct, Z80 is binary compatible with 8080 and 8085. So any Z80 assembler can be used. Correct?

Alexander.
Become a realist, stay a dreamer.

 

Online oPossum

  • Super Contributor
  • ***
  • Posts: 1559
  • Country: us
  • Very dangerous - may attack at any time
Re: 8085 Assembler?
« Reply #13 on: December 28, 2019, 11:17:36 pm »
Quote
Is there any free assembler for 8085?
Don't forget that the 8085 is essentially just an 8080 internally, with only two extra instructions (RIM, SIM)8080 assemblers are pretty common.

If my understanding is correct, Z80 is binary compatible with 8080 and 8085. So any Z80 assembler can be used. Correct?

Same core binary instruction set, but some different mnemonics. LD instead of MOV for example.
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22435
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: 8085 Assembler?
« Reply #14 on: December 29, 2019, 12:01:14 am »
Z80 has tons more registers, it is not backwards compatible.  80 is forwards compatible (and x86 is designed to be easy to migrate to, but is in no way binary compatible).  If you carefully restrict yourself to use the compatible subset, you could use a Z80 assembler.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 
The following users thanked this post: firewalker

Offline obiwanjacobi

  • Super Contributor
  • ***
  • Posts: 1030
  • Country: nl
  • What's this yippee-yayoh pin you talk about!?
    • Marctronix Blog
Re: 8085 Assembler?
« Reply #15 on: December 29, 2019, 08:53:22 am »
Wrong code should not compile!
 
The following users thanked this post: firewalker

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 19260
  • Country: us
  • DavidH
Re: 8085 Assembler?
« Reply #16 on: December 29, 2019, 04:50:43 pm »
If you are keying it in on a hex keypad, you might as well convert the assembler to hex manually!

That was the first programming I did you insensitive clod!

We had pads of lined paper forms specifically for doing the assembly manually.  Then I typed the hex values directly into a Prolog PROM programmer.

After a while, you know all of the important opcodes.
 

Offline GeorgeOfTheJungle

  • Super Contributor
  • ***
  • !
  • Posts: 2699
  • Country: tr
Re: 8085 Assembler?
« Reply #17 on: December 29, 2019, 05:02:33 pm »
After a while, you know all of the important opcodes.

But calculating the relative back/forward offsets isn't fun...
The further a society drifts from truth, the more it will hate those who speak it.
 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 17830
  • Country: fr
Re: 8085 Assembler?
« Reply #18 on: December 29, 2019, 05:35:05 pm »
After a while, you know all of the important opcodes.

But calculating the relative back/forward offsets isn't fun...

It's a pain. ;D
I also did this back when I had a Z80 single board to play with. Of course didn't have any other computer that could host a (cross-)assembler back then.

When I got my first CP/M machine, it came with no assembler actually AFAIR (or maybe I just didn't know it did, I had very little documentation)... I wrote my own in Pascal (Turbo), and added a feature to automatically generate machine code that could be directly inlined in Pascal code. That was fun.
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 19260
  • Country: us
  • DavidH
Re: 8085 Assembler?
« Reply #19 on: December 29, 2019, 06:27:30 pm »
After a while, you know all of the important opcodes.

But calculating the relative back/forward offsets isn't fun...

8085 only uses absolute addresses.

If you are not sure about instruction length, then use the longer form and insert NOPs as required later.  Does anybody remember phase errors in assemblers?

Notice that NOP is 00000000b so it can be later overwritten in an additional programming pass.  This makes it possible to patch code which has already been burned to memory.
« Last Edit: December 29, 2019, 06:35:09 pm by David Hess »
 

Online tggzzz

  • Super Contributor
  • ***
  • Posts: 23122
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: 8085 Assembler?
« Reply #20 on: December 29, 2019, 06:39:36 pm »
If you are keying it in on a hex keypad, you might as well convert the assembler to hex manually!

That was the first programming I did you insensitive clod!

We had pads of lined paper forms specifically for doing the assembly manually.  Then I typed the hex values directly into a Prolog PROM programmer.

After a while, you know all of the important opcodes.

Actually too acutely sensitive.

The first computer I designed and made had binary switches. The first I bought had a hex keypad (an Acorn system 1), and I showed a proof of concept in 10% of the expected time :) I then saw people using an 8086 with a hex keypad, which was far too heroic for me!

Apart from that, the first computer I used had a 39-bit word.
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Offline GeorgeOfTheJungle

  • Super Contributor
  • ***
  • !
  • Posts: 2699
  • Country: tr
Re: 8085 Assembler?
« Reply #21 on: December 29, 2019, 06:39:52 pm »
After a while, you know all of the important opcodes.

But calculating the relative back/forward offsets isn't fun...

8085 only uses absolute addresses.

I'm not sure if that makes it even worse yet... ? :)

Quote
If you are not sure about instruction length, then use the longer form and insert NOPs as required later.  Does anybody remember phase errors in assemblers?

I don't, what's that?
The further a society drifts from truth, the more it will hate those who speak it.
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 19260
  • Country: us
  • DavidH
Re: 8085 Assembler?
« Reply #22 on: December 29, 2019, 06:51:44 pm »
If you are not sure about instruction length, then use the longer form and insert NOPs as required later.  Does anybody remember phase errors in assemblers?

I don't, what's that?

A phase error occurs when addresses do not match between passes.  This could occur if the instruction length changes between passes.  It is more common with ISAs which support short jumps:

https://dfdeboer.github.io/S05/304/PH_ERROR.HTM
 

Offline GeorgeOfTheJungle

  • Super Contributor
  • ***
  • !
  • Posts: 2699
  • Country: tr
Re: 8085 Assembler?
« Reply #23 on: December 29, 2019, 07:17:35 pm »
A phase error occurs when addresses do not match between passes.  This could occur if the instruction length changes between passes.  It is more common with ISAs which support short jumps:

https://dfdeboer.github.io/S05/304/PH_ERROR.HTM

 Hahaha, primitive tools! :-+

My favourite ISA back then only had 16 bit jump (absolute or indirect), and 8 bit relative conditional branch.
The further a society drifts from truth, the more it will hate those who speak it.
 

Online jesuscf

  • Frequent Contributor
  • **
  • Posts: 504
  • Country: ca
Re: 8085 Assembler?
« Reply #24 on: December 30, 2019, 01:14:27 am »
If you are keying it in on a hex keypad, you might as well convert the assembler to hex manually!

That was the first programming I did you insensitive clod!

We had pads of lined paper forms specifically for doing the assembly manually.  Then I typed the hex values directly into a Prolog PROM programmer.

After a while, you know all of the important opcodes.

So did I for the Micro-Professor MPF-I board with a Z80 microprocessor!  (https://en.wikipedia.org/wiki/Micro-Professor_MPF-I)  After a while you get really good at it.  In this video



Bill Gates talks about Paul Allen doing exactly the same: writing a simple boot loader for the Altair 8800  (in assembly for the 8080 microprocessor) in a flight to Albuquerque New Mexico and later keying it by hand bit by bit.  Funny how Bill Gates brags about writing a better boot loader than Paul Allen later on.  The boot loader read the paper tape with the first basic interpreter for the Altair 8800 from Microsoft.
Homer: Kids, there's three ways to do things; the right way, the wrong way and the Max Power way!
Bart: Isn't that the wrong way?
Homer: Yeah, but faster!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->