- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re:
I am using CPU Sim to change wombat1 to wombat2 by adding stack. I have done adding a Stack RAM and a Stack pointer SPR. I have implemented a push instruction as such: acc->mdr mdr->Stack[SPR] End The implementation is able to push the acc value to Stack but not able … |
|
Re:
Hello all, Let me first state that this is my first program written in ARM, so please excuse that it might seem a bit chaotic. Also, I want to state that this is a homework assignment for an assembly class. I am supposed to read in an input file, only … |
|
Re:
As the title says. I have tried FreeBSD's stack structure but it looks as though Mac does not use that structure. Also, how could I get their value into a particular register (ecx)? Thanks in advance! |
|
|
Re:
I have already done some Assembly programming using Turbo Assembler. So recently i downloaded MASM32 but i was unable to link and execute my programs. Is there anyone out there who can suggest a way to link and execute using a simple Hello World! Program ? Thanx |
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:
What is possibly wrong with this code ? data segment msg db "Enter a character: " data ends code segment assume cs:code , ds:data mov dx,data mov ds,ax mov dx,offset msg mov ax,08h int 21h mov bx,ax mov ax,4c00h int 21h code ends end ![766258137b1795d569beae9cd872b521](/attachments/large/4/766258137b1795d569beae9cd872b521.jpg "766258137b1795d569beae9cd872b521") |
Re:
Hello! First of all i want to sa that i have searched here for an answer, but i can't find an explanation :( I want to make a countdown, let say 20 sec. The user must click on a specified pixel in this time. If the user don't click the … |
|
Re:
Hi, i am using emu8068 and i want to know how i read from a file or buffer(with file text) a specified caractes. I have a file named "config.txt" and it seems like that: Easy 50 10 Hard 20 5 When user select Easy/Hard i want to catch the 50 … |
|
Re:
#include <iostream> #include <conio.h> using namespace std; void TOH(int d, char tower1, char tower2, char tower3) { if(d==1) //base case { cout<<"\nShift top disk from tower"<<tower1<<"to tower"<<tower2; return; } TOH(d-1,tower1,tower3,tower2); //recursive function call cout<<"\nShift top disk from tower"<<tower1<<"to tower"<<tower2; TOH(d-1,tower3,tower2,tower1); //recursive function call } int main() { int disk; cout<<"Enter … |
|
Re:
Hi anyone here know some good companies that can help with developing my program |
|
Re:
So I am trying to reverse a string inputed by a user and I am getting an error on one line of my code the line is lw $t3, $t0($t1) #load value. Why can I not do this? .data prompt: .asciiz "Enter in a string: " backwards: .asciiz "That string … |
|
Re:
Ok I have done the fibonacci number iteratively but now I want to do it recursively. I am using CPUSims 3.6.9 16-bit (4 bit opcode). ;getN ;get a value, n, from user ;test if fib(0) or fib(1) return to main with value getN: read ;read a value and store into … |
|
Re:
SO guys I am supposed to be making a program that will check for a palindrome but, I can not get my code to work. It seems to be stuck on the cmp part. I am not sure if this is even right I dont have much experience with masm. … |
|
|
|
Re:
Please help me this exercise. Write a program to perform the following tasks: · Generate 100 random numbers in the range 0-100 · Show the random numbers were generated · Arrange methods randomly arranged and showing the basic · Take breaks to save the file and read from file … |
|
Re:
Hi: I am new in the forum and I need some help. I have to write an assembly language program that reads a file with numeric information, and I need to create an array with that information and add them. SO far, I can open, read and display the information … |
|
Re:
I'm really new to MIPS, so I'm having a hard time reading and understanding the code. For my homework, I was asked to identify and corrects errors in the folllowing code which computes the fibonacci number with given n passed in register $a0, and return it in $v0. I was … |
|
Re:
Hi everyone, I'm trying to figure out if there is any way to do exponents using bit shifting. I know the following: x *= 2 --> x << 2 x /= 2 --> x >> 2 pow(2, x) --> 1 << x i'm looking for the equivalent bitshift, if any, … |
|
Re:
la $a1, answer li $v1, 4 syscall move $a0, $v0 # move value of recursion to print li $v0, 1 # print integer value syscall # executes print li $v0,10 # call to exit syscall # executes exit The uncommented section is the area giving me problems, answer is a … |