Jump to content
IGNORED

MADS sin command


Recommended Posts

I don't know how MADS but in XASM the sin coomand is sin(center,amp,size,first,last). So I assume it will be the same in MADS, so you wanted only part of it from 0 to 0 :) so only one value. And you probably should set the size to 256 not 255. If you wanted 256 values of a one sine cycle you should write:

 

sintab dta b(sin(127,127,256,0,255))

Edited by MaPa
Link to comment
Share on other sites

hehe... my fault... ;)

 

ok... and how to generate 16bit sin values? so they are divided into a low and a hibyte tabe?

 

org $5400

sintab dta b(sin(127,128,255))

dta b(sin(127,128,255))

sintab2l .byte <(sin(31*256,32*256,255))

sintab2h .byte >(sin(31*256,32*256,255))

 

does not work...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...