2,888 Topics

Member Avatar for
Member Avatar for esmeco

Hello! I'm having problems figuring out how to extend the datapath and blocks used for ble and sgt instructions on MIPS32. After studying a bit I managed to code the instructions for ble and sgt: [CODE] slt $t0, $s2, $s1 beq $t0, $zero, less_equal //////////////////////////// slt $t0, $s2, $s1[/CODE] Any …

0
71
Member Avatar for john_l

I'm writing a program using the LC-3 Simulator with limited instructions. I'm trying to solve the problem "n choose r" recursively. I'm having difficulty pin pointing where my programs going wrong. Any help would be greatly appreciated. [CODE] .orig x3000 ;Clear registers and r0, r0, #0 and r1, r1, #0 …

0
53
Member Avatar for Christico80

Is it possible to set 4 80x86 processors up each of the registers EAX, EBX, ECX, EDX storing 32 bits of a 256 bit variable?

Member Avatar for jbennet
0
71
Member Avatar for zerox55

Hello. I just started with assembly. In my emulator (emu8086) this code work perfectly. But when i write it out to a floppy it doesn't work. I know that if i write out one letter at time, it works. Is it impossible to write this way? [CODE=asm]#make_boot# org 7c00h jmp …

0
77
Member Avatar for DarkDot

I am making an interest calculation program and can't figure out how to get the integer number input by the user into a decimal number. For example I don't know how to make 5, into .05 in MIPS assembly language. I've tried div but I can't get it to work …

0
62
Member Avatar for T'Scoopz

[I]Hello, this is my first thread. I'm a freshman in Computer Engineering and currently taking Intro to Computer Systems with Yale Patts & Sanjay J. Patel's book. I've been using this wonderful website to help better understand the computer language world. [/I] [I]We are currently beginning to write programs and …

0
75
Member Avatar for Soraka

Hello,i am new to the forums. I am in need of help.I have got 3 ASM's witch link together. I put the main one in the ASM to EXE (TASM is what i used) but instead of getting the file i need i get a error that it cant find …

Member Avatar for Soraka
0
41
Member Avatar for cael07

can anyone please give me a simple code of an a86 assembly calculator that can execute +,-,*,/ functions... i really need help... hope anyone there can help me... thanks...

Member Avatar for sDJh
0
114
Member Avatar for DarkDot

I have to make a program that takes a user entered deposit and interest rate and then calculates the balance for 5 years. I can't figure out what I'm doing wrong. I always use the deposit amount of 1000 and interest rate of 5 therefore for the five years the …

Member Avatar for DarkDot
0
165
Member Avatar for DarkDot

Okay I am trying to create a program that takes in 10 integers, then prints out the Max integer and the Min integer. The first loop reads in the 10 integers and the second one is supposed to print out the Max and Min integers. The problem I'm having is …

Member Avatar for DarkDot
0
164
Member Avatar for CzechRock3
Member Avatar for Narue
0
57
Member Avatar for sara_84

Hi all, i need an assembly 8086 code that compare between numbers from 1 to 99 and write output messege contain > or < or = can any body help me

Member Avatar for anomalice
0
133
Member Avatar for 3xy

.model small .stack 64 .data error_alpha db "Invalid input. Expression contains letter/s. ",13,10,"$" error_range db "Invalid input. Operand/s may be out of range. ",13,10,"$" error_overflow db "An overflow has occurred. ",13,10,"$" error_invalidinput db "Invalid Input. ",13,10, "$" redo db "Please enter a valid one.",13,10,"$" newline db 13,10,"$" inputlen dw 2 …

Member Avatar for anomalice
0
248
Member Avatar for torbecire

I am supposed to draw a box with coordinates UpperLeft(5,70) UpperRight(5,10), LowerRight(20,10) LowerLeft(20,70). I can't figure out what I am doing wrong. HERE IS ME CODE. [ICODE]TITLE BOX INCLUDE Irvine32.inc .code main PROC COORDS BYTE 5,10,20,70 UL BYTE 0DAh UR BYTE 0BFh LL BYTE 0C0h LR BYTE 0Dh VERT BYTE …

0
63
Member Avatar for TheClue

hello to all! :) i've a trouble in completing the very very very last code for my thesis in computer science. I'm playing with interrupt hooking in 16 bit DOS mode, but my code acts strange: ------------------------- ORG 0x100 ; old int21h mov ax, 0x3521 int 0x21 ; save it …

0
59
Member Avatar for dokumen

i'm newbie here.. i'm not a programmer.. i'm really interesting with this kind of application.. it's a chat application.. it is made with asm.. it has 4 button: Join chatroom, Leave Chatroom, Kick and Send Text.. can any1 help me to modify this application so there are new feature like …

Member Avatar for jephthah
0
154
Member Avatar for matt999tye

I am trying to write a program using direct addressing and pointers on the number and create a 32 bit variable from 10136654 All operations will be done in 16 bit registers like ax, bx, etc. But how is this possible if it must go in 16 bit from 32 …

Member Avatar for matt999tye
0
116
Member Avatar for DarkDot

Hey I'm using MIPS and created a Fibonacci program and am not sure that its working correctly. When I enter 1 it returns 1 like it should and when I enter 0 it returns 0 like it should. However when I enter a number that takes it into the Fibonacci …

Member Avatar for deco05ie
0
682
Member Avatar for deco05ie

Im making a simple sort program in tasm but im not very good, Iv got it to work with numbers (as seen below) but i have no idea how to get it to sort a list of strings in assembly any help would be nice [CODE]title sort .model small .stack …

0
60
Member Avatar for dupontmika

will pay 40 usd paypal to someone who can do these simple programs, up front. pm me

Member Avatar for Narue
0
33
Member Avatar for Dark Pallys

Hey there everyone.. I'm pretty new in this forum and also with Assembly, to be honest I haven't programmed anything in Assembly. I'm a VB Programmer and I work with some C/C++ But well that's not the reason I'm here hehe. On the forum I work at one of our …

Member Avatar for Dark Pallys
0
98
Member Avatar for sgk26p10p07

Now i have been able to create the gdt's and when i change to pmode, will a short JMP flush the instruciton prefetch queue? here is a sample of my code and the gdt and gdtr content, [code] mov ax,07c00h mov ds,ax lgdt [ds:descr] ;switch to pmode by setting bit …

Member Avatar for koyi
0
171
Member Avatar for koyi

Hi, I am pretty new with assembly so please bear with me if this question sounds stupid :) I am teaching myself OS development from resources of the web. I came across this tutorial [URL="http://osdever.net/bkerndev/Docs/gdt.htm"]here[/URL] which talks about setting up GDT. I don't really get it when it is to …

0
278
Member Avatar for gbouchard

Hey everyone, I'm new to ASM (only have some basics in coding), and I'd like to know if anyone could help me here. What I'm trying to do: I'd like to convert the letters (from a name entered) to ASCII, and add all their values. For example, [B]gbouchard[/B] would be …

Member Avatar for gbouchard
0
81
Member Avatar for mar00ned_soul

below is my code.. i need to make this code read 3 digit and add it.. i know i lack a loop here.. i tried to make a loop but it didn't work. So here it is the original one that i made, that is working and reads one digit. …

0
48
Member Avatar for bobrien314

I have an assignment due coming up and i am having a little bit of trouble. the purpose of the assignment is to reverse the values an array with the first value being the length of the array, I thought everything was done right but it won't reverse, actually nothing …

0
78
Member Avatar for agrawalashishku

I'll tell what I know and then I will ask questions. Please correct me where I am wrong Suppose I have two cores in my CPU or 2 processors. What i know is that it is the duty of the operating system to give me a processor to execute my …

-1
53
Member Avatar for runtime error

Len_data Equ 14 Xcoord Dw 0 Ycoord Dw 0 Ascval Dw ? Dispdata Label Byte Xmsg Db 'x = ' Xascii Dw ? Db ' ' Ymsg Db 'y = ' Yascii Dw ? .code A10main Proc Far Mov Ax,2 Mov Ds,ax Mov Es,ax Call B10initz Cmp Ax,00 Je A90 …

0
66
Member Avatar for acidpaul

Can someone help me undestand each line of code. I used emu8086 for this program.. Any help will be appreciated! Title Fibonacci series ; Fibonacci series ; ; Write a program that generates the first 15 integers ; of the Fibonacci series {1,2,3,5,8,...}. Beginning with ; the third element, each …

Member Avatar for Tight_Coder_Ex
0
336
Member Avatar for fuzzy89

I need this translated in MIPS can anyone help me out? [CODE]#include <stdio.h> int n; int row[8], s = 0; bool safe(int x, int y) { int i; for (i = 1; i <= y; i++) if (row[y - i] == x || row[y - i] == x - i …

Member Avatar for Duoas
0
190

The End.