And a better one that doesn't use variables: : prog1 20 1 do 0 i 3 mod 0= if ." fizz" drop 1 then i 5 mod 0= if ." buzz" drop 1 then 0= if i ....
Forth (developed and tested with Win32Forth) variable test3 variable test5 variable prt : prog 1 0 0 test3 ! test5 ! prt ! 20 1 do test3 @ 1 +...
How far have you got, and where are you stuck? The code will be very similar to the code you posted.
xpi0t0s has reported a post. Reason:I found this funny after what you said in the previous post :-) Post: Advise about stock market shorts...
By requiring you to open ports. See for example (found with a quick Google search) :...
3^(SIZE_OF_INTEGER-1) isn't going to fit into a SIZE_OF_INTEGER-bit integer...
OK, fair point, I had missed the fact that this CPU doesn't actually exist. So you have no choice but to dry run it in your head. I'm reluctant...
>But the thing is I manually have to open the router ports Yeah, that's the point of them. > Could you please guide me what should I look for so...
How exactly isn't it working properly? What does it do that you don't expect, or what does it not do that you expected it would?
Why are you asking if this is incorrect? What exactly don't you understand about addi // rt <-- rs + imm // I-type Also what happens if you run...
How far have you got and where are you stuck? We're not a free homework service but we will help you learn, if you're interested.
After 8 posts I would have thought you would know about code blocks by now. USE THEM PLEASE.
And my other post (about a detailed description...)?
I would say probably not, because it depends on the initial value of r0. If r0 starts off as zero, what do you think the result will be? If...
The page reference leads to documentation on Customizing and Automating the Development Environment and for help with this I would recommend using...
Could you give a detailed description of the problem you're trying to solve? In particular I'd like to understand why the approach I suggested...
You need to know more than just the keyword to write programs. For example, what does addi a,b,c mean, is it a+b=c, or a=b+c, or b=a+c, or...
Depends very much on the hardware, or in this case the simulator. What simulator are you using?
You just need to think about it slightly differently. Obviously you can't say if x>=2^32-1 because that's always going to evaluate FALSE. Let's...
heh, that's why you should post a new thread rather than hijacking someone else's thread on a completely different subject. It's free to click...
Separate names with a comma.