flat assembler
Message board for the users of flat assembler.

Index > Non-x86 architectures > MCS-48

Author
Thread Post new topic Reply to topic
shoorick



Joined: 25 Feb 2005
Posts: 1614
Location: Ukraine
shoorick 26 Jul 2015, 18:40
Here is a macro set to support MCS-48 architecture Wink
Slightly tested Rolling Eyes

I'm not sure if it is possible to buy a 8049 nowdays, but it can be found in garbage, say, in old AT keyboard Wink Look at MCU you can see at the foto: It had been broken while extracting, I even had thrown it out, but then took back and check - it appeared working Shocked

As example you may see a program for traffic lights - assembling it with fasmg gives similar binary as I got before with SBASM.

++++++++++++++++++++++++++++++++++++++++

new version is here


Description:
Filesize: 54.16 KB
Viewed: 15789 Time(s)

1.jpg


Description:
Download
Filename: 8048.zip
Filesize: 4.21 KB
Downloaded: 1592 Time(s)


_________________
UNICODE forever!


Last edited by shoorick on 10 Nov 2016, 22:08; edited 2 times in total
Post 26 Jul 2015, 18:40
View user's profile Send private message Visit poster's website Reply with quote
shoorick



Joined: 25 Feb 2005
Posts: 1614
Location: Ukraine
shoorick 01 Feb 2016, 06:31
A new updated version of 8048.inc has been uploaded. To test it I made recently a new paperino with 8049, powered by two 256x4 OTP ROMs.
Image
Also there bin.inc and switch.inc files can be found (descent from hex.inc) in the package. They help to get output very convenient to use with real programmer's programmer (aka ROM destroyer), like this:
Image
it is very handy to use it with printed text like this:
Code:
---- ---- ---- ---- : --X- --XX
---- ---- ---- ---X : -X-X -X-X
---- ---- ---- --X- : --XX X--X
---- ---- ---- --XX : XXX- -XXX
---- ---- ---- -X-- : --XX X--X
---- ---- ---- -X-X : --XX -X-X
---- ---- ---- -XX- : X-XX X--X
---- ---- ---- -XXX : XXXX XXX-
---- ---- ---- X--- : XXXX X--X
---- ---- ---- X--X : XXX- -XXX
---- ---- ---- X-X- : X-X- X--X
---- ---- ---- X-XX : --XX X--X
---- ---- ---- XX-- : ---X -X--
---- ---- ---- XX-X : ---X ----
---- ---- ---- XXX- : ---- -X--
---- ---- ---- XXXX : ---- X---
...    

more pictures

Although it works, you must be carefull if you plan to control a nuclear power station with it Cool

_________________
UNICODE forever!
Post 01 Feb 2016, 06:31
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 01 Feb 2016, 13:21
They are very nice macros! Plain and clear. I also like the simple practical ideas like your "switch" output encoding. Smile
Post 01 Feb 2016, 13:21
View user's profile Send private message Visit poster's website Reply with quote
shoorick



Joined: 25 Feb 2005
Posts: 1614
Location: Ukraine
shoorick 01 Feb 2016, 13:38
thanks! i try to do my best Smile
Post 01 Feb 2016, 13:38
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.