Assembler (ASM) and optimisation tutorial by KG_is_back

DSP related issues, mathematics, processing and techniques
Post Reply
User avatar
Spogg
Posts: 3368
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England
Contact:

Assembler (ASM) and optimisation tutorial by KG_is_back

Post by Spogg »

A long time ago KG_is_back created a great resource for learning assembler in FlowStone. It was put on the Guru website which now doesn’t work.
I found this information really useful and learnt some basics at least.
There are two texts, one was about assembler and the other was about optimisation in assembler. There was also a pdf listing the available opcodes and a schematic he made with some useful tools.

I took it upon myself to proofread the documents, which involved correcting and improving the English. Then I combined the two texts into one document. I didn’t change any of the technical stuff.
Then I sent it to KG and he was appreciative, but wanted to improve on the technical stuff, after which he would post it. That never happened and he hasn’t visited the forum since January 2020.
So I decided to share it anyway, because it’s really good as it is.

Keep in mind that it’s not my work, and that it’s valid for FS3. I gather the FS4 alpha has extended the possibilities considerably.

I hope you find it useful.
Attachments
KG's ASM infos.zip
(1.65 MiB) Downloaded 1679 times
adamszabo
Posts: 667
Joined: Sun Jul 11, 2010 7:21 am

Re: Assembler (ASM) and optimisation tutorial by KG_is_back

Post by adamszabo »

Nice one, thanks!
User avatar
tektoog
Posts: 141
Joined: Sat Oct 30, 2010 11:49 pm
Location: Geneva - Switzerland

Re: Assembler (ASM) and optimisation tutorial by KG_is_back

Post by tektoog »

Yep, thanks for sharing ;)
"Essential random order for chaotic repetitive sequences"
User avatar
HughBanton
Posts: 265
Joined: Sat Apr 12, 2008 3:10 pm
Location: Evesham, Worcestershire
Contact:

Re: Assembler (ASM) and optimisation tutorial by KG_is_back

Post by HughBanton »

Nice job, Spogg.

I've learned a ton of stuff from the Guru site, an absolute goldmine.

H
User avatar
josevo
Posts: 33
Joined: Mon Jan 01, 2018 9:41 pm

Re: Assembler (ASM) and optimisation tutorial by KG_is_back

Post by josevo »

Thank you so much!
DSP-Robotron
Posts: 58
Joined: Tue Aug 18, 2020 3:39 am

Re: Assembler (ASM) and optimisation tutorial by KG_is_back

Post by DSP-Robotron »

Since the other Arp made in Ruby has performance issues and bugs and who knows what else, can that Arp be recreated in assembler ?
User avatar
Spogg
Posts: 3368
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England
Contact:

Re: Assembler (ASM) and optimisation tutorial by KG_is_back

Post by Spogg »

DSP-Robotron wrote:...can that Arp be recreated in assembler ?

It’s an interesting question but I don’t think ASM can deal with MIDI. Maybe someone who knows ASM/Ruby better than me can respond.
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Assembler (ASM) and optimisation tutorial by KG_is_back

Post by tulamide »

Spogg wrote:
DSP-Robotron wrote:...can that Arp be recreated in assembler ?

It’s an interesting question but I don’t think ASM can deal with MIDI. Maybe someone who knows ASM/Ruby better than me can respond.

Assembler is a low level language, invented to directly communicate with the heart of a PC, which is the processor (nowadays, with combined functionality on one chip called CPU). The physical structure of a CPU (with cache, registors, memory lanes, etc.) is key to understanding Assembler. You can access registers, and do mathematical operations with the bits stored there, using memory to buffer results, by invoking instructions from a defined set that a processor understands (keywords are CISC, RISC, etc). Nothing more.

It's the genius of people like Martin that give this "simple" mechanism a meaning in the DSP world. But MIDI should be close to impossible to control by ASM, unless an access other than the red MIDI inputs/outputs is granted.
"There lies the dog buried" (German saying translated literally)
User avatar
Spogg
Posts: 3368
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England
Contact:

Re: Assembler (ASM) and optimisation tutorial by KG_is_back

Post by Spogg »

tulamide wrote:... It's the genius of people like Martin that give this "simple" mechanism a meaning in the DSP world. But MIDI should be close to impossible to control by ASM, unless an access other than the red MIDI inputs/outputs is granted.


Thank you tulamide! :D

It's what I suspected simply because I'd never seen any midi stuff done in ASM and KG never mentioned it in his tutorial. But I wasn't completely sure.
Another point is that midi is very slow in comparison with ASM which is lightning fast, so there would probably be little to gain anyway.

Cheers!
Post Reply