- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
20 Posted Topics
Re: 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? | |
Re: Are you sure your output string is null-terminated? You seem to be using armsim? | |
Re: 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 … | |
Re: Funny, I thought I posted something here some hours ago... Where did it go? | |
![]() | Re: 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. … ![]() |
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 … | |
![]() | Re: 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, … |
Re: 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. | |
Re: 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) … | |
Re: 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) } | |
Re: 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 … | |
Re: 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? | |
Re: 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? | |
Re: 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) … | |
Re: Looks like Google translation or something. | |
Re: Too bad Irvine is used. DOS calls would have been more general and the documentation easy to find. | |
Re: 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 … | |
Re: 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 + … | |
Re: 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? |
The End.