I need to do a minor update to a 8051 program written in
assembler in 1994 and assembled on a machine/language that no longer
exists. I wrote the program, so I have some idea how it works.
The assembler was asm80
A Cross Assembler
for the Intel 8080-8085
With CPM[tm] syntax
- by -
David A. Klotzbach
I have the C source for the program, but I can't compile it.
What I'd like is a dos/windows executable that I can use to
assemble my program, but I'd settle for something that works in linux.
I only plan to do this once.
I downloaded a freeware compiler for windows...no luck.
Built a Fedora Core 4 Linux system and tried that...no luck.
The error messages seem more about compiler directives than
C itself, but I'm no C programmer, so I can't tell for sure.
If I go hacking around in an assembler written in C, I'm gonna make
a mess for sure.
So, finally, my question: Given a C program, how does one go
about finding a compiler that will work on it? I'm not willing
to learn enough C to port someone else's assembler. And I really,
really don't want to port my program to a different assembler.
I think I can do a two-line patch without much debugging.
If I have to port it, I'll have to build a whole debugging system.
Do I have any options?
Thanks, mike 4 2361
mike wrote: I need to do a minor update to a 8051 program written in assembler in 1994 and assembled on a machine/language that no longer exists. I wrote the program, so I have some idea how it works.
The assembler was asm80 A Cross Assembler
for the Intel 8080-8085
With CPM[tm] syntax
- by -
David A. Klotzbach
I have the C source for the program, but I can't compile it. What I'd like is a dos/windows executable that I can use to assemble my program, but I'd settle for something that works in linux. I only plan to do this once.
I downloaded a freeware compiler for windows...no luck. Built a Fedora Core 4 Linux system and tried that...no luck. The error messages seem more about compiler directives than C itself, but I'm no C programmer, so I can't tell for sure. If I go hacking around in an assembler written in C, I'm gonna make a mess for sure.
So, finally, my question: Given a C program, how does one go about finding a compiler that will work on it? I'm not willing to learn enough C to port someone else's assembler. And I really, really don't want to port my program to a different assembler. I think I can do a two-line patch without much debugging. If I have to port it, I'll have to build a whole debugging system.
Using Google, and 5 minutes of my employer's time I managed to get to
something that looks like a binary/executable you're looking for: http://www.geocities.com/rjkuhn_2000/as80_130.zip
Still, your question is probably better for one of the embedded groups.
If you ever try to go into "fixing" that C source you mention, do cmoe
here and ask.
mike wrote: I need to do a minor update to a 8051 program written in assembler in 1994 and assembled on a machine/language that no longer exists. I wrote the program, so I have some idea how it works.
The assembler was asm80 A Cross Assembler
for the Intel 8080-8085
With CPM[tm] syntax ..... So, finally, my question: Given a C program, how does one go about finding a compiler that will work on it? I'm not willing to learn enough C to port someone else's assembler. And I really, really don't want to port my program to a different assembler. I think I can do a two-line patch without much debugging. If I have to port it, I'll have to build a whole debugging system.
Do I have any options?
<OT>
It is possible that the "machine/language that no longer exist" still
exist, or can be emulated in a modern system.
The options I see, in less-effort to more-effort order:
(a) Try searching for a ready to run version of asm80.
(b) Find somebody to help getting that assembler to work under a
modern C compiler.
(c) Convert the 8051 program to use a modern cross-assembler.
(Best option if you will do more maintenance work on that program)
(d) You mention an "8051 program" and a "cross assembler for the Intel
8080/85 with CPM syntax". I am going to guess this means your 8051
assembler is implemented as a set of macros for the cross assembler.
In this case you may be able to run the same macros on a "real" CPM
assembler under a CPM emulation such as MYZ80, etc. ( Try asking in
comp.os.cpm )
</OT>
Vladimir Oka wrote: mike wrote:
I need to do a minor update to a 8051 program written in assembler in 1994 and assembled on a machine/language that no longer exists. I wrote the program, so I have some idea how it works.
The assembler was asm80 A Cross Assembler
for the Intel 8080-8085
With CPM[tm] syntax
- by -
David A. Klotzbach
I have the C source for the program, but I can't compile it. What I'd like is a dos/windows executable that I can use to assemble my program, but I'd settle for something that works in linux. I only plan to do this once.
I downloaded a freeware compiler for windows...no luck. Built a Fedora Core 4 Linux system and tried that...no luck. The error messages seem more about compiler directives than C itself, but I'm no C programmer, so I can't tell for sure. If I go hacking around in an assembler written in C, I'm gonna make a mess for sure.
So, finally, my question: Given a C program, how does one go about finding a compiler that will work on it? I'm not willing to learn enough C to port someone else's assembler. And I really, really don't want to port my program to a different assembler. I think I can do a two-line patch without much debugging. If I have to port it, I'll have to build a whole debugging system.
Using Google, and 5 minutes of my employer's time I managed to get to something that looks like a binary/executable you're looking for:
http://www.geocities.com/rjkuhn_2000/as80_130.zip
Still, your question is probably better for one of the embedded groups. If you ever try to go into "fixing" that C source you mention, do cmoe here and ask.
Thank your employer for his time...but...I, too, have a search engine.
The program you found has a similar name, but uses different input
syntax...accord ing to the manual. I haven't actually tried it because
it throws an illegal instruction error and aborts in a win2k dos box.
I will give it a shot in a real dos environment, but I'm not optimistic.
Thanks, mike
mike wrote: Vladimir Oka wrote: mike wrote:
I need to do a minor update to a 8051 program written in assembler in 1994 and assembled on a machine/language that no longer exists. I wrote the program, so I have some idea how it works.
The assembler was asm80 A Cross Assembler
for the Intel 8080-8085
With CPM[tm] syntax
- by -
David A. Klotzbach
I have the C source for the program, but I can't compile it. What I'd like is a dos/windows executable that I can use to assemble my program, but I'd settle for something that works in linux. I only plan to do this once.
I downloaded a freeware compiler for windows...no luck. Built a Fedora Core 4 Linux system and tried that...no luck. The error messages seem more about compiler directives than C itself, but I'm no C programmer, so I can't tell for sure. If I go hacking around in an assembler written in C, I'm gonna make a mess for sure.
So, finally, my question: Given a C program, how does one go about finding a compiler that will work on it? I'm not willing to learn enough C to port someone else's assembler. And I really, really don't want to port my program to a different assembler. I think I can do a two-line patch without much debugging. If I have to port it, I'll have to build a whole debugging system.
Using Google, and 5 minutes of my employer's time I managed to get to something that looks like a binary/executable you're looking for:
http://www.geocities.com/rjkuhn_2000/as80_130.zip
Still, your question is probably better for one of the embedded groups. If you ever try to go into "fixing" that C source you mention, do cmoe here and ask. Thank your employer for his time...but...I, too, have a search engine. The program you found has a similar name, but uses different input syntax...accord ing to the manual. I haven't actually tried it because it throws an illegal instruction error and aborts in a win2k dos box. I will give it a shot in a real dos environment, but I'm not optimistic. Thanks, mike
Try : http://www.df.lth.se/~pi/compis/file...nguages/plm80/
This will give you an ISIS emulator and the asm80 assembler
It should also be available on the CP/M page at : http://www.cpm.z80.de/download/plm80.zip
Probably the second link offers more information.
Regards,
Hans This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Sigmund Skjelnes |
last post by:
Hi!
Trying to get a simple cpp program to compile, I'd got the linker
complaining it could'nt find eiter cout nor endl or other object which
belong to iostream. I'd had to use stdiolib to get the program working.
I'd have attached the source code, some of it is Norwegian, but I'd
think it will make sense anyway.
Do anybody have a clue why the library is missing? The code compiled ok
because the .h file is there, but the linker is...
|
by: Charlie Zender |
last post by:
Hi,
First, this may be a GCC or Linux-specific problem, I'm not sure.
I am unable to compile a large body of code with extremely pedantic
compile time checks activate, so that warnings cause errors.
With GCC 3.3.1, I do this with
gcc -I/usr/local/include -g -O2 -std=c99 -pedantic -pedantic
-D_BSD_SOURCE -Wall -Wunused -W -Wmissing-prototypes -Wconversion
|
by: joshc |
last post by:
I'm writing some C to be used in an embedded environment and the code
needs to be optimized. I have a question about optimizing compilers in
general. I'm using GCC for the workstation and Diab compiler for the
embedded target.
My question is about how compilers optimize certain code sequences.
As an example, take the code below. Will the compiler eliminate the
actual function call to foo() in the object code generated and just
store...
|
by: Mark Rockman |
last post by:
------ Build started: Project: USDAver2, Configuration: Debug .NET ------
Preparing resources...
Updating references...
Performing main compilation...
error CS0583: Internal Compiler Error (0xc0000005 at address 535F072A): likely culprit is 'BIND'.
An internal error has occurred in the compiler. To work around this problem, try simplifying or changing the program near the locations listed below. Locations at the top of the list are...
|
by: JTrigger |
last post by:
When I compile my project using the IDE on a development machine it works
just fine. When I compile it on the server using csc.exe, I get the
following error when I try to bring it up in the web browser. What is the
issue?
Thanks,
Jim
Server Error in '/psnRequest' Application.
----------------------------------------------------------------------------
| |
by: codergem |
last post by:
One common answer is that all compilers keep the size of integer the
same as the size of the register on a particular architecture. Thus, to
know whether the machine is 32 bit or 64 bit, just see the size of
integer on it.
Is it Correct??
Or there any other way of finding it out?
Do I need to mention that through a C++ program..??
|
by: lovecreatesbea... |
last post by:
K&R says the following in the preface to the first edition,
"... the C compiler, and ... are written in C."
I'm wondering, does it say even the first / original C compiler was
written in C?
|
by: xiao |
last post by:
It always dumped when I tried to run it... But it compiles OK. What I
want to do is to do a test:
Read information from a .dat file and then write it to another file.
The original DAT file is like this : (very simple..........)
010001010110001101010101010101010101010101
#include<stdio.h>
|
by: bernard |
last post by:
howdy!
please recommend a good c compiler.
- should be small
- should be fast
- should come with a good ide
- should be inexpensive
i am using windows os.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |