Posted Wed Nov 23, 2011 9:21 AM
Posted Wed Nov 23, 2011 9:41 AM
Tursi, on Tue Nov 22, 2011 11:09 PM, said:
Quote
Quote
Quote
Posted Wed Nov 23, 2011 6:52 PM
Willsy, on Wed Nov 23, 2011 4:22 AM, said:
Quote
: RANDOMIZE 8802 C@ DROP 0 BEGIN 1+ 8802 C@ 80 AND UNTIL $83C0 ! ;
Posted Wed Nov 23, 2011 6:58 PM
Lee Stewart, on Wed Nov 23, 2011 9:41 AM, said:
Quote
Quote
Posted Thu Nov 24, 2011 5:05 AM
Lee Stewart, on Tue Nov 22, 2011 4:30 PM, said:
HEX : RANDOMIZE 8802 C@ DROP 0 BEGIN 1+ 8802 C@ 80 AND UNTIL SEED ;
randomize.PNG 36.27K
1 downloads
Posted Thu Nov 24, 2011 5:17 AM
randomize-mess.PNG 24.81K
1 downloads
randomize-win994a.PNG 32.35K
1 downloadsPosted Thu Nov 24, 2011 9:54 PM
Willsy, on Thu Nov 24, 2011 5:05 AM, said:
Posted Fri Nov 25, 2011 12:58 AM
Posted Fri Nov 25, 2011 8:15 AM
Tursi, on Fri Nov 25, 2011 12:58 AM, said:
Posted Sun Nov 27, 2011 2:40 AM
* a table with 17 number
rnddat data 1966,23,3,31415,2718,7,666,17881,48
data 57,28030,991,8,7412,69,884,11357
* the two pointers in the table (10=5th number and 34=17th number as they are WORDS)
index data 10,34
random li r0,index
mov *r0+,r1 * first pointer
mov *r0,r2 * second one
mov @rnddat-2(r1),r4 * take first number
a @rnddat-2(r2),r4 * add second
mov r4,@rnddat-2(r2) * stores result to modify table
srl r4,4 * from 0 to >fff
mov r4,@RETURN * into "return value", that's the RND generated
li r4,34 * end of list
dect r0 * back on fist index
dect r1 * previous value for next RND
jne rd1
mov r4,r1 * if 0, back to the end of list
rd1 mov r1,*r0+ * stores pointer
dect r2 * same for second pointer
jne rd2
mov r4,r2
rd2 mov r2,*r0
b *r11
Posted Mon Nov 28, 2011 9:01 PM
Posted Mon Nov 28, 2011 11:06 PM
Lee Stewart, on Mon Nov 28, 2011 9:01 PM, said:
ASM: SEED SP INCT R12 *SP MOV, ... ... *SP R12 MOV, DECT SP ;ASM
ASM: SEED ... ... R12 $8328 LI, ;ASM
' <AssemblyWordName> 2+ $.which will return the address of the first executable instruction in your routine. The debugger in Classic99 is enabled by pressing SCROLL LOCK. Then you can display it with either the Edit menu or by pressing HOME.
Assembler.pdf 260.6K
2 downloadsPosted Tue Nov 29, 2011 7:58 AM
Willsy, on Mon Nov 28, 2011 11:06 PM, said:
Posted Tue Nov 29, 2011 9:39 AM
Posted Tue Nov 29, 2011 9:44 AM
Willsy, on Tue Nov 29, 2011 9:39 AM, said:
0 members, 0 guests, 0 anonymous users