2+2*2 = 8? spinasm compiler calculations are

Software questions and issues with the FV-1

Moderator: frank

Post Reply
igorp
Posts: 65
Joined: Tue May 19, 2015 6:10 am
Location: RU

2+2*2 = 8? spinasm compiler calculations are

Post by igorp »

sequental in line.
Why?

I spent couple of hours to find mistake why this simple code:

Code: Select all

	rda	delay + 0179/KK , 0.8	
is working incorrectly
frank
Posts: 1241
Joined: Wed Oct 19, 2005 12:26 pm
Contact:

Post by frank »

Yup, looks like it is not handling the order of operations properly. I did not write the assembler for FV-1 so do not know how they parse the equations or solve them but it does look like a simple left to right method.
Frank Thomson
Experimental Noize
igorp
Posts: 65
Joined: Tue May 19, 2015 6:10 am
Location: RU

Post by igorp »

Oh, thank you
Post Reply