flat assembler
Message board for the users of flat assembler.

Index > Non-x86 architectures > STM8 + fasmg

Author
Thread Post new topic Reply to topic
shoorick



Joined: 25 Feb 2005
Posts: 1614
Location: Ukraine
shoorick 28 Jul 2017, 10:30
Here you have something to deal with STM8 MCUs.
They have weird but powerfull CISC command set, nice hardware and are pretty cheap.
If you are not a great solderer, you may buy mini-board with CPU and with or without soldered pins, etc. The board I've bought has reset button and led attached to PB5 pin, so, I had to solder only four pins to connect the board to usb programmer (ST-Link) to try.
STM8 can run program in RAM, and ST visual programmer can launch it without touching the FLASH memory, so, in attached example you may found a program which may blink the LED on PB5 pin from RAM.
Also there is a batch to convert stm8 headers into fasmg includes - you need sed installed to use it.

I'm new to this architecture, so, all offsets are restricted to be positive, and I'm not sure about MOV mem,mem: which is "mem1" and which is "mem2", I supposed the first offset after opcode is source, and the last is destination - must check it Wink Also, I have not check its behavior well on bad syntaxis...
So, bugfixes are welcome Rolling Eyes


Description:
Download
Filename: STM8S103F3.zip
Filesize: 8.4 KB
Downloaded: 1257 Time(s)


_________________
UNICODE forever!
Post 28 Jul 2017, 10:30
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8357
Location: Kraków, Poland
Tomasz Grysztar 28 Jul 2017, 15:21
Thank you for your continued exploration of new architectures with fasmg! I have added it to the list.
Post 28 Jul 2017, 15: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 28 Jul 2017, 17:44
I'm glad to contribute such great assembler! Wink
Post 28 Jul 2017, 17:44
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.