2,878 Topics

Member Avatar for
Member Avatar for louise07

I need help with my code. this is a simple calculator. My addition seems to work fine. but in subtraction, when the answer is only one digit.. the first digit seems messed up. Special character shows up. This program is supposed to be accepting 2 digit number, example 02 + …

Member Avatar for elenov
-1
3K
Member Avatar for myamzen

Hello everyone, I am new to assembly, and I am trying to learn it. I was given a book by one of my professor to read over the Holidays unfortunately the book assumes basic knowledge in Assembly (BTW, the book is "See MIPS run linux") I just have some basic …

Member Avatar for nezachem
0
154
Member Avatar for stamford47

a) If the content of d0 is $30 state in words what each of the following numbered instructions will do when placed immediately after the test instruction below tst d0 a) bne fred b) If the content of d0 is $30 state in words what each of the following numbered …

Member Avatar for stamford47
0
69
Member Avatar for vista

Okay so I working on this program where I have to input a string and then display the character distribution in that string. For example: if the input is “[B]minecode[/B]” the output should be C – 1 O – 1 D – 1 E – 2 I – 1 M …

Member Avatar for sDJh
0
6K
Member Avatar for ibrahim_commu

plz any help in this code in assembly by emulator8086 [B] the code about[/B] a classroom has 25 students their numbers and grades in the microprocessor course are stored in the memory .it is required to rearrang them in descending order according to their grades. the inputs are two tables …

Member Avatar for NotNull
0
78
Member Avatar for Happy Family

hello everyone how to play sound via PC internal speaker? using emu 8086. example: musical note use 61h, 42h ports. how to work IO ports. please

Member Avatar for NotNull
0
60
Member Avatar for umarslayer

can u help me with this problem: Write a program that will be able to examine every character in a string to see if matches the character supplied by the user. i. Ask for an input string (up to 4 characters) from the user. Display each character to the screen …

0
42
Member Avatar for navidabedpoor

Hi Every one i need 3 program below assembly code or their algorithms;please help me : [B][COLOR="Red"]1- Multiplying two 10 digit numbers 2- Dividing two 10 digit numbers 3- Square two 10 digit numbers[/COLOR][/B] please help love you thanks

Member Avatar for kolosick.m188
0
55
Member Avatar for wiza

i want to make a car waiting meter program using microprocessor assembly language , in the car parking a car waiting is used the drive puts a mount of money and this meter will allow him to park his car for a specific time 1pound=5minutes ,5pound=30min , 10pound=60min if the …

0
47
Member Avatar for jianina07

sorry for this interruption.. May i ask you sir about our project.? It is a round medicine organizer that will alarm at a specified time that the user set. It's like a pizza pie that has 7 pies (compartment of the medicine). This what we want to happen. When the …

Member Avatar for jianina07
0
195
Member Avatar for JhonRR

Hello Everyone, i'm new to assembly language programing i would like to write a program that will print prompts to enter two values and a code #. If the code # is 1, output the greater of the values.... otherwise it should output the lesser here is what i have: …

Member Avatar for jianina07
0
197
Member Avatar for mtfudi

Consider the following C++ program fragment: [CODE=c++]int a[1000]; int b = 0; for (int i = 0; i != 1000; i++) { b = b + a[i]; }[/CODE] (a) Write a MIPS assembly program which corresponds to this program fragment. (b) Unroll the loop in the program 4 times in …

Member Avatar for kolosick.m188
0
72
Member Avatar for gazza123

Hi everyone. I'm fairly new to programming with spim. This is the first time I've tried to multiply numbers and I keep getting errors! I looked up on 'SPIM quick reference' how to do multiplication but can't get it to work. Any help would be greatly appreciated :) PS. I …

Member Avatar for afuller454
0
519
Member Avatar for adm

please can any one help in this by mips :(quickly) You have to write a MIPS program that multiplies two 3x3 matrices. The two matrices are defined for you in the code. The program then prints the two matrices and their product. You should use loops to navigate through the …

0
51
Member Avatar for dragan-amon

Hi there if there is anyone who read this I need help with my project, and sorry for my english :) I"m working on a Stop light project where I need to light up 3 LEd like a stop (traffic) light , The LED are conected to the PC by …

Member Avatar for Nick Evan
0
90
Member Avatar for Blackeagle

Hello, can someone help me to figure out how i can print the content stored in si ? suppose i did: sub si,si inc si ---> repeated this few time. how can i print the number in SI on the screen?

Member Avatar for NotNull
0
118
Member Avatar for cliffaem28
Member Avatar for murugeshkumaran
Member Avatar for cliffaem28
0
49
Member Avatar for shopnobhumi

what would be the recursive implementation of the following c program: int fact(int n) { if (n == 0) return (1); else return(n*fact(n – 1)); }

Member Avatar for eng.ehsan07
0
126
Member Avatar for 825

please can anyone help me with this homework i do not know what to do. thank you 1. Write a program that will count from any user-inputted number to 0. For example, if the user inputs 5, the program should output: 5, 4, 3, 2, 1, 0.

Member Avatar for b1083
0
106
Member Avatar for obini

Hi, i'm new in this forum and i need help with mips assembly. I wrote this code but i can't found the error. [code]#Convert from decimale base to binary one using recursive procedure .data prompt: .asciiz "Insert decimal number: " output: .asciiz "The number in binary base is: " .text …

Member Avatar for obini
0
2K
Member Avatar for Fenrir190

[CODE] ;==================Prompts=============== warning db "Invalid order. The dividend should be greater than the divisor",0 prompt1 db 0dh,0ah,"Please enter a dividend ",0 prompt2 db 0dh,0ah,"Please enter a divisor ",0 Display db 0dh,0ah,"Quotient: ",0 Display2 db 0dh,0ah,"Remainder: ",0 ;==================Variables============= dividend word ? ; Holds the dividend divisor word ? ; Holds the …

Member Avatar for NotNull
0
154
Member Avatar for Goalatio

Compile this with NASM16 (Must be compiled in .COM format!) It will display all 256 colors usable by the BIOS in a neat rectangle that contains 16 columns, 17 rows (Just counted, it may be different). KNOWN BUGS: If you enter FULLSCREEN or run this program from a DOS operating …

0
556
Member Avatar for rushabh_one
Member Avatar for Goalatio
0
89
Member Avatar for RayvenHawk

Ok I have an assignment that requires me to create 3 macros to do 3 different function. I have the first one completed but the 2nd two are giving me some trouble. #2) Write a macro that takes in 2 32-bit integers and divides the first from the second and …

Member Avatar for RayvenHawk
0
126
Member Avatar for goldenz

STDOUT equ 01h get_date equ 02ah get_time equ 02ch write_handle equ 040h terminate equ 04ch DOSINT macro function, subfunction IFB <subfunction> mov ah,(function AND 0ffh) ELSE mov ax,(function SHL 8) OR (subfunction AND 0ffh) ENDIF int 21h endm Delay macro local ulang local ulang2 push cx mov cx,50000 ulang: push …

0
48
Member Avatar for neighbordave

I am totally lost when it comes to assembly language. My teacher just decided one day at the end of this semester to give us a programming assignment in assembly language and has barely taught us anything. I have to use five subroutines: main, add, subtract, multiply, divide and cannot …

Member Avatar for ProgramIT
0
1K
Member Avatar for cabosun

So I have two MAL programs that I am getting 2 errors in each of them. I am using xSpim on unix to run this program. I wrote this using the windows version PCSPIM which compiled the program and ran it flawlessly. But when I tried to run it using …

0
72
Member Avatar for Jeff_5_7

Here is my assembly lang program. [CODE] mov dh,0 C: sub bl,cl mov al,bl mov ah,0 mov bh,2 div bh cmp ah,0 je A mov al,cl mov ah,0 mov bh,2 div bh A: mov al,cl add dh,al add bl,cl add cl,1 cmp cl,bl jle C[/CODE] I am trying to convert …

Member Avatar for marcel222
0
229
Member Avatar for marcel222

Hello, My name is Marcel and I am new on this forum, I have a question about the following: I am working on a 16 bit application for a AM186ES processor (x86 compatible), this processor has no internal ROM or RAM. My application will be stored on a PC-Card from …

0
45

The End.