News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

FSM

Started by Jaflo187, December 02, 2009, 10:46:05 PM

Previous topic - Next topic

Jaflo187

Make an FSM to accept positive or neg numbers and a number with a decimal.
I.E. 12.544.-4,5,.003

rags

Show us some code of what you have done so far, then we can help you.
And as JJ2207 said in this post http://www.masm32.com/board/index.php?topic=12828.0;topicseen
we don't do homework assignments.
God made Man, but the monkey applied the glue -DEVO

hutch--

Jaflo187,

Here is a hint, if what your definition od a FSM entails getting a set result from a specified input to a finite limit, you can do it simply by using a MASM .IF block.


.if eax == 1
  mov eax, 1234
  ret
.elseif eax == 2
  mov eax, 2345
  ret
.elseif eax == 3
  mov eax, 3456
  ret
.else
  mov eax, -1
  ret
.endif
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php