Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Endorsement
Ranked #858
Ranked #1K

20 Posted Topics

Member Avatar for kal_crazy

Where does your microcode update the SPR? Hm, maybe I need to check out this wombat-processor organization. Also, what does this do: "ir(4-15)->mar" Is this an immediate instruction, or maybe registers are memory-mapped?

Member Avatar for Ajnesh
0
2K
Member Avatar for fatalaccidents
Member Avatar for Rajan_7
0
3K
Member Avatar for SAMMY12345

Linux is the kernel of all Linux-distro operating systems, like Debian, Ubuntu,... Kernel of an operating system is roughly the part that schedules and dispatches processes - maybe only one, if it's not multiprogramming kernel - and handles the interrupts. Basically it manages the processor itself allocating it to processes …

Member Avatar for turboscrew
-2
289
Member Avatar for lim.charmender
Member Avatar for Rahul47

I compiled and linked, but couldn't execute. (MASM32 editor: File/Cmd prompt) C:\masm32>bin\ml /c test.asm Microsoft (R) Macro Assembler Version 6.14.8444 Copyright (C) Microsoft Corp 1981-1997. All rights reserved. Assembling: test.asm C:\masm32>bin\link16 test.obj Microsoft (R) Segmented Executable Linker Version 5.60.339 Dec 5 1994 Copyright (C) Microsoft Corp 1984-1993. All rights reserved. …

Member Avatar for Rahul47
0
1K
Member Avatar for turboscrew

One thing I find quite irritating is that you can write a lengthy posting without logging in. You just can't send it. If you then log in, you loose all the writing. You can't even copy it before logging in. Is there any plans doing something for it? Often I …

Member Avatar for Dani
0
150
Member Avatar for Rahul47

mov dx,data mov ds,ax mov dx,offset msg What are you trying to do here? What do you think is in the ax when you replace the data segment register with it? The error doesn't look like connected to that, but that can cause funny things. You should just: mov dx, …

Member Avatar for turboscrew
0
239
Member Avatar for el.maxim.st

You should give a bit more about what you have done this far, and how have you handled the countdown. There may be half a million answers depending on the approach. This is pretty much as asking "how many?" without saying what, and in which situation.

Member Avatar for el.maxim.st
0
484
Member Avatar for el.maxim.st

I think you can't read numbers, but just characters. You just have to "build" the numbers from the digits yourself. If you think of it, the ascii codes of numbers are 0x30 - 0x39, so you get the value of the digit by subtracting the ascii code of '0' (=0x30) …

Member Avatar for turboscrew
0
117
Member Avatar for surfingturtle

Hanoi (disks, from_peg, to_peg, spare_peg) if disks == 0 return if disks is 1 { move topmost disk from from_peg to to_peg } else { Hanoi(disks-1, from_peg, spare_peg, to_peg) Hanoi(1, from_peg, to_peg, spare_peg) Hanoi(disks-1, spare_peg, to_peg, from_peg) }

Member Avatar for surfingturtle
0
915
Member Avatar for R
Member Avatar for kyle.mace.35

Because MIPS is a RISC and there is no such instruction. LW -- Load word Description: A word is loaded into a register from the specified address. Operation: $t = MEM[$s + offset]; advance_pc (4); Syntax: lw $t, offset($s) Encoding: 1000 11ss ssst tttt iiii iiii iiii iiii I guess …

Member Avatar for turboscrew
0
6K
Member Avatar for kal_crazy

This: CPUSims 3.6.9 doesn't tell anything. CPUSims is CPU organization simulator. It doesn't simulate a certain processor. It's made for simulating different processors. What kind of processor is supposed to run the code?

Member Avatar for kal_crazy
0
2K
Member Avatar for reloadmvp

lea rdi, [s] ;moves first characters of s into rdi, if s is 64-bit aligned. otherwise crashes Maybe you meant to load the address of the first string byte into rdi?

Member Avatar for turboscrew
0
1K
Member Avatar for reloadmvp

1) Sometimes, although rarely, one needs to program in assembly. 2) Helps to understand what kind of high level code is "light" for the used processor, or processors in general. (What kind of algorithms tend to be heavy.) 3) Optimization of high level code using machine dependent pragmas (sometimes). 4) …

Member Avatar for turboscrew
0
129
Member Avatar for nhanduong
Member Avatar for ECGP
Member Avatar for turboscrew
0
1K
Member Avatar for VictorK19

I added some comments in your code, maybe you see... FIB: # make stack frame addi $sp, $sp, –12 sw $ra, 0($sp) # return address sw $s1, 4($sp) # temporary storage? sw $a0, 8($sp) # parameter # Check if bottom of recursion slti $t0, $a0, 1 beq $t0, $0, L1 …

Member Avatar for turboscrew
0
5K
Member Avatar for losh177

That X=5 case is based on the idea that 5x5 = 5 x (4 + 1). Generalization is that X^2 = X * X = X * (a + b) where a is c^2 and b is 1. Number 9 is similar 9 = 8 + 1 = 2^3 + …

Member Avatar for turboscrew
0
2K
Member Avatar for Andrew_6

Which syscall you should call there at line 3? In the code you put no function code in $v0. You put code 4 (print string) into $v1 though. I assume you are using a simulator. MARS?

Member Avatar for turboscrew
0
185

The End.