tag:blogger.com,1999:blog-1626185782516232162.post5155342910644164336..comments2024-01-23T15:21:25.389-08:00Comments on Winfred C. H. Lu: Step by step to MIPS assemblyWinfredhttp://www.blogger.com/profile/15649970719010644298noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-1626185782516232162.post-22032474848088855572015-03-02T06:30:23.532-08:002015-03-02T06:30:23.532-08:00Yes. 4 bytes space in the stack is reserved to sto...Yes. 4 bytes space in the stack is reserved to store the value of 2^3. Thanks for correcting my typo on alternate register names.Winfredhttps://www.blogger.com/profile/15649970719010644298noreply@blogger.comtag:blogger.com,1999:blog-1626185782516232162.post-39090136924837244242015-03-01T11:44:31.338-08:002015-03-01T11:44:31.338-08:00I have got a question about the third example. You...I have got a question about the third example. You reserve 4 bytes in a stack for a local variable (but you don't address to it). In next instructions you use adress 4(sp) to this local variable, but it's adress of previous 4 bytes in stack. Am I right?Сергейhttps://www.blogger.com/profile/10374318400834436452noreply@blogger.comtag:blogger.com,1999:blog-1626185782516232162.post-26035208491076872552015-02-28T11:53:11.856-08:002015-02-28T11:53:11.856-08:00Hello.
I think that you made a mistake with names ...Hello.<br />I think that you made a mistake with names of registers $4 and $2 in the first example. These registers have names $a0 and $v0 respectively. You use these right register names in your second example.Сергейhttps://www.blogger.com/profile/10374318400834436452noreply@blogger.comtag:blogger.com,1999:blog-1626185782516232162.post-41542114755556333742011-10-01T07:17:24.111-07:002011-10-01T07:17:24.111-07:00Thanks for tis tutorial. I'm using it on Emtec...Thanks for tis tutorial. I'm using it on Emtec Gdium laptop with MIPS CPU. To make some examples work I had to change asm/regdef.h into sys/regdef.h.Jure "JLP" Repinchttps://www.blogger.com/profile/15970493792803796942noreply@blogger.comtag:blogger.com,1999:blog-1626185782516232162.post-46172405148665275852010-08-26T02:06:51.241-07:002010-08-26T02:06:51.241-07:00I think you're asking the 4th example, line 5 ...I think you're asking the 4th example, line 5 and line 10. They are both bytes. When we try to access memory, it is usually byte aligned (or even word aligned).Winfredhttps://www.blogger.com/profile/15649970719010644298noreply@blogger.comtag:blogger.com,1999:blog-1626185782516232162.post-10848914916525789962010-08-24T22:41:52.487-07:002010-08-24T22:41:52.487-07:0032 bytes o 32 bits?32 bytes o 32 bits?Laurahttps://www.blogger.com/profile/08847310111581386438noreply@blogger.com