Announcement

Collapse

Forum Rules and Etiquette

Our mission ...

This forum is part of our mission to promote the preservation of vintage computers through education and outreach. (In real life we also run events and have a museum.) We encourage you to join us, participate, share your knowledge, and enjoy.

This forum has been around in this format for over 15 years. These rules and guidelines help us maintain a healthy and active community, and we moderate the forum to keep things on track. Please familiarize yourself with these rules and guidelines.


Rule 1: Remain civil and respectful

There are several hundred people who actively participate here. People come from all different backgrounds and will have different ways of seeing things. You will not agree with everything you read here. Back-and-forth discussions are fine but do not cross the line into rude or disrespectful behavior.

Conduct yourself as you would at any other place where people come together in person to discuss their hobby. If you wouldn't say something to somebody in person, then you probably should not be writing it here.

This should be obvious but, just in case: profanity, threats, slurs against any group (sexual, racial, gender, etc.) will not be tolerated.


Rule 2: Stay close to the original topic being discussed
  • If you are starting a new thread choose a reasonable sub-forum to start your thread. (If you choose incorrectly don't worry, we can fix that.)
  • If you are responding to a thread, stay on topic - the original poster was trying to achieve something. You can always start a new thread instead of potentially "hijacking" an existing thread.



Rule 3: Contribute something meaningful

To put things in engineering terms, we value a high signal to noise ratio. Coming here should not be a waste of time.
  • This is not a chat room. If you are taking less than 30 seconds to make a post then you are probably doing something wrong. A post should be on topic, clear, and contribute something meaningful to the discussion. If people read your posts and feel that their time as been wasted, they will stop reading your posts. Worse yet, they will stop visiting and we'll lose their experience and contributions.
  • Do not bump threads.
  • Do not "necro-post" unless you are following up to a specific person on a specific thread. And even then, that person may have moved on. Just start a new thread for your related topic.
  • Use the Private Message system for posts that are targeted at a specific person.


Rule 4: "PM Sent!" messages (or, how to use the Private Message system)

This forum has a private message feature that we want people to use for messages that are not of general interest to other members.

In short, if you are going to reply to a thread and that reply is targeted to a specific individual and not of interest to anybody else (either now or in the future) then send a private message instead.

Here are some obvious examples of when you should not reply to a thread and use the PM system instead:
  • "PM Sent!": Do not tell the rest of us that you sent a PM ... the forum software will tell the other person that they have a PM waiting.
  • "How much is shipping to ....": This is a very specific and directed question that is not of interest to anybody else.


Why do we have this policy? Sending a "PM Sent!" type message basically wastes everybody else's time by making them having to scroll past a post in a thread that looks to be updated, when the update is not meaningful. And the person you are sending the PM to will be notified by the forum software that they have a message waiting for them. Look up at the top near the right edge where it says 'Notifications' ... if you have a PM waiting, it will tell you there.

Rule 5: Copyright and other legal issues

We are here to discuss vintage computing, so discussing software, books, and other intellectual property that is on-topic is fine. We don't want people using these forums to discuss or enable copyright violations or other things that are against the law; whether you agree with the law or not is irrelevant. Do not use our resources for something that is legally or morally questionable.

Our discussions here generally fall under "fair use." Telling people how to pirate a software title is an example of something that is not allowable here.


Reporting problematic posts

If you see spam, a wildly off-topic post, or something abusive or illegal please report the thread by clicking on the "Report Post" icon. (It looks like an exclamation point in a triangle and it is available under every post.) This send a notification to all of the moderators, so somebody will see it and deal with it.

If you are unsure you may consider sending a private message to a moderator instead.


New user moderation

New users are directly moderated so that we can weed spammers out early. This means that for your first 10 posts you will have some delay before they are seen. We understand this can be disruptive to the flow of conversation and we try to keep up with our new user moderation duties to avoid undue inconvenience. Please do not make duplicate posts, extra posts to bump your post count, or ask the moderators to expedite this process; 10 moderated posts will go by quickly.

New users also have a smaller personal message inbox limit and are rate limited when sending PMs to other users.


Other suggestions
  • Use Google, books, or other definitive sources. There is a lot of information out there.
  • Don't make people guess at what you are trying to say; we are not mind readers. Be clear and concise.
  • Spelling and grammar are not rated, but they do make a post easier to read.
See more
See less

Z80 assembler

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Z80 assembler

    Anyone recommend an assembler for Z80 with a windows editor and maybe a built in emulator to test code ?

    I have been using https://www.asm80.com/ and it does everything but I would prefer to have it based on the PC and save the files on the PC and also sometimes it goes a little awry.
    Current fleet
    TRS80 Model 4 - BBC B - Tatung Einstein - PCW9512 - PET 3032 - C64 - ZX81 - Spectrum 48K - Amiga A500 - Apple II europlus - Apple iMAC G3. Sharp MZ-80K. - IBM 5160 XT - Multibus 286/10 - Micro PDP 11/73 - Rainbow PC100A - MicroVax II - MicroVAX 3100, 3300, VAX 4000 VLC & 4000 Model 96 - AlphaStation 225 Apricot PC - Apple Performa 6200 - Apple Mac IIcx - Osborne 1 - ACT Sirius 1

    #2
    Take your pick

    Whose syntax? Zilog or DRI or, say, Sorcim? Back when I was rolling embedded Z80 code for a living, I used the Avocet assembler on a PC.
    Reach me: vcfblackhole _at_ protonmail dot com.

    Comment


      #3
      If not using asm80, I use ZMAC (http://48k.ca/zmac.html) and the Altairz80 implementation of SIMH for the emulator.

      I may have made a slight 'tweak' to the ZMAC sources to assemble some code I had - there was an incompatibility between my Z80 source code and an extended feature of ZMAC if I remember correctly.

      ZMAC is written in 'C' and you get the source code for it to mess about with...

      I have also written my own NASCOM emulator - so I also use ZEAP under NASSYS-3 running on my NASCOm emulator and then run the resultant code on my NASCOM emulator. Sad really !

      Equally sad (...) is ZASMB - which is a Z80 assembler written in Z80 assembler. It can assemble itself - so can be run under the same emulator that you are testing your code out on.

      The thing to consider about your emulator is what I/O features you need. The AltairZ80 emulation is somewhat limited in this respect (if I remember correctly).

      Of course, there are plenty of 'true' Z80 assemblers that will run under CP/M (on an emulator itself).

      It all depends on what you want to do...

      You could always run the Z80 assembler on your TRS80 of course! That was how a certain company developed the firmware for the SENSION.

      Cross32 is also a very nice meta assembler. I converted the SENSION firmware source code from the TRS80 over to a PC running Cross16 (at the time). https://www.mpeforth.com/software/cr...eta-assembler/

      Dave
      Last edited by daver2; August 7, 2021, 12:25 PM.

      Comment


        #4
        Dave,

        yes i suppose the TRS80 could be used but in the end, a windows environment is hard to beat and the web based ASM80 is almost perfect to create and test code quickly as I make EPROMs to test my Osborne.

        Ideally it would be perfect to have it as a download to run locally as I keep loosing source code and the github signup requirements seems a bit intrusive. What I don't want is a text/EMACS then command line type of assembler if I can avoid it.

        I suppose ASM80 is what I will use and it even produces Intel hex directly which my programmer needs.
        Last edited by Gary C; August 7, 2021, 02:47 PM.
        Current fleet
        TRS80 Model 4 - BBC B - Tatung Einstein - PCW9512 - PET 3032 - C64 - ZX81 - Spectrum 48K - Amiga A500 - Apple II europlus - Apple iMAC G3. Sharp MZ-80K. - IBM 5160 XT - Multibus 286/10 - Micro PDP 11/73 - Rainbow PC100A - MicroVax II - MicroVAX 3100, 3300, VAX 4000 VLC & 4000 Model 96 - AlphaStation 225 Apricot PC - Apple Performa 6200 - Apple Mac IIcx - Osborne 1 - ACT Sirius 1

        Comment


          #5
          If you want the flexibility of source code under Win32, zmac seems to be a logical choice. I think another criterion is the scale of your project. Is it large, needing a relocating loader and linkage editor? If so, that may eliminate a lot of candidates. Before the PC, Microsoft's package of M80, L80 and LIB80 was pretty hard to beat for Z80 under CP/M.

          Now, quick--someone find me a Rockwell PPS-4 assembler that runs on 64 bit Linux.
          Reach me: vcfblackhole _at_ protonmail dot com.

          Comment


            #6
            Thanks you two.

            I will try your suggestions.

            At the moment all I am doing is writing code to fault find an Osborne 1, so the only I/O port it uses is the one to change memory maps.
            Current fleet
            TRS80 Model 4 - BBC B - Tatung Einstein - PCW9512 - PET 3032 - C64 - ZX81 - Spectrum 48K - Amiga A500 - Apple II europlus - Apple iMAC G3. Sharp MZ-80K. - IBM 5160 XT - Multibus 286/10 - Micro PDP 11/73 - Rainbow PC100A - MicroVax II - MicroVAX 3100, 3300, VAX 4000 VLC & 4000 Model 96 - AlphaStation 225 Apricot PC - Apple Performa 6200 - Apple Mac IIcx - Osborne 1 - ACT Sirius 1

            Comment


              #7
              I have been using z80asm in Linux successfully.

              Comment


                #8
                Sticking with online ASM80 at the moment as I like the ability to one click into the emulator to test the code does what I expect and produces intel hex directly which my programmer insists on.
                Current fleet
                TRS80 Model 4 - BBC B - Tatung Einstein - PCW9512 - PET 3032 - C64 - ZX81 - Spectrum 48K - Amiga A500 - Apple II europlus - Apple iMAC G3. Sharp MZ-80K. - IBM 5160 XT - Multibus 286/10 - Micro PDP 11/73 - Rainbow PC100A - MicroVax II - MicroVAX 3100, 3300, VAX 4000 VLC & 4000 Model 96 - AlphaStation 225 Apricot PC - Apple Performa 6200 - Apple Mac IIcx - Osborne 1 - ACT Sirius 1

                Comment

                Working...
                X