2,889 Topics
![]() | |
I am new to assembly so I need help with fixing some things in my code. I need to add three integers and print their sum. The prompt for "Enter the integer" changes color each 3 time it asks the user for entering the number, on a white background. I … | |
Hi, I'm reasonably new to assembly, but now that I have mastered the basics, I would like to start using something a little more fun. Can anyone tell me where I can find a book on Assembly for building GUI interfaces. Because this is nice and low level, I don't … | |
i want to reserve 4096 bytes in the memory and initialize all with zeros how should i do that? initialize: mov byte[array:di],0 inc di cmp di,4096 jne initialize array: resw 4096 | |
In the name of God ...................................... Hi this is my code . i want to add 2 digits and then print them on screen : what's wrong : [CODE] title myprog .model small .stack .data num1 db 12 num2 db 13 .code start : mov ax,@data mov ds,ax ; data … | |
im trying to read in a string using spaces to separate integers, then display the total of all the seperate integers in the string....Any help would be greatly appreciated [CODE] .data Prompt1: .asciiz "\nPlease enter a list of integers." newline: .asciiz "\n" Buffer: .space 400 .globl main .text main: li … | |
how to sort numbers and letters ascending? please help me | |
I've done this to play a song that allows you to select instruments. Can anyone tell me why this is hanging? [icode] .data instrumentPrompt:.asciiz "Select instrument (piano,strings,or guitar): " octavePrompt: .asciiz "Select octave (lo,med,or hi): " msg2:.asciiz "\nInvalid instrument" msg3:.asciiz "\nInvalid octave" instrumentspace: .space 20 octavespace: .space 20 instrpiano: .asciiz … | |
I know many assembly languages so my question isn't anything assembly related it's C++ related, I understand what __asm does and I've used it before but where's where I'm hung up on __asm drops down to the assembly level for programming although it's not advisable to use it because it's … | |
I'm starting to learn the Pep/8 simulator. Do you know where i can find some tutorials? Thanks. | |
can someone make the code on this activity II. Procedures: a. Create a program (Save as Act4.asm) that will ask the user to input a 2 digit number. Compute and display the sum of these numbers. Assume that the sum will only yield a single digit (maximum value of 9). … | |
Hi, I am using NASM and I am having a problem finding the correct instruction to capture string (more than one character) data from the keyboard. I can capture int data (read_int) or even one character with get_kb Any help would be appreciated. Thanks | |
hi there. i ve just dwonload NASAM compiler bur couldn able to install it on my sytem as i couldnt find any intall.exe file in it and i'm usig XP home edition [B][I]so anyone could tell me how do i install it if it thru CMD than plz code of … | |
how to declare 1024 nodes of 4 bytes each in assembly language? | |
example: enter name: jayvee i don't know how to initialize arrays and to access them. i also don't know the equivalent of scanf in assembly. please help me. | |
I am copying one string(source) to another(destination) using movsb in assembly. However, after the instruction movsb is performed, my source string is altered. Why is that? Does movsb alter the content of the source string too? And if movsb really does that, what other instruction can i used to copy … | |
Heyy, I have a bootloader written in assembly language. The code appears fine to me. But the system is not booting form it. It first said bootmgr missing, which i corrected by downloading an existing bootmgr and copying it to the usb. (The usb is bootable.) Now, an error shows … | |
How would you program a assembly code in MIPS where a user would enter a 7 letter long word and it would translate to a phone number. For instance a person would write CALLNOW and the phone number 225-5669 would be the output. | |
Please help me translate this nested for loop to assembly [CODE]for(int i=0, k=0; i<8; i=i+4, k++){ for(int j=i; j<=i+4; j++){ temp[j-(4*k)]=binary[j]; } }[/CODE] | |
Hi Ladies and Gentlemen, Some of you may remember may, while some may not, because I wasn't that famous with you guys. So let me introduce myself before I introduce my problem. That would create a base for you. I am Shikhin Sethi, a 12 year old programmer, with expeience … | |
please help me with my code.. :( i am suppose to enter a 4-digit number and compare it to '0000'. i don't know why my code isn't working. i am not very good in debugging.. please help me [CODE] sseg segment para stack "stack" db 4096 dup(?) sseg ends dseg … | |
In a scenario that caller doesn't necessarily need callee to use memory of one of its local variables of a primitive type to track that variable later for anything, I know that when passing that variable to a callee function; it'd be done by value and that makes total sense … | |
Hello Everyone. Well, i have really little experience in assembly. So, please excuse me if my question is very trivial. Well, i attended a course on programming the 8086 and we used the MASM assembler, and programming which, we always used this: [CODE] .model small [/CODE] i never understood exactly … | |
Hi, im trying to get the parameters from the command line when the program is executed. I know that the PSP have a DTA and it is stored in the DS:[80h], but i dont know how to save the parameter somewhere and use it before. I think I should use … | |
Hello guys, I want to reverse a string by storing it in some other location but my code is not working can somebody help me? Here is my code: [CODE] org 100h mov bx,0h mov ah,1h readStr: int 21h mov str[bx],al inc bx cmp al,13 jne readStr ;To Print The … | |
Hello all, as i am new to the assenbly language and i only know basics of this languagea and i have to write a code to Read and print an integer value (range -32768 to 32767). Can somebody please help me in this. Note: I am using emu 8086 . | |
Greetings! I was asked to make a 'rename' command using INT 21h/56h by doing the following: 1. Ask the user to enter the file he wants the name to be changed 2. Ask the name of the file that will be used as the new filename. 3. Return error codes … | |
I am new to Microprocessor 8086. i should submit this assignment by monday evening. Can anybody help me with this question? Q1 Write an 8086 assembly language program that will compute: 2.0 * log10 X for x = 0.1, 1.0, 10.0, 100.5, 1000.0, and six other values using a loop. … | |
![]() | Write an assembly program, `fsm1234.asm`, that prompts the user for a number and checks it against the fsm in the figure 2. Figure 2. `L={1,2,3,4}` All numbers besides 1 must be preceded AND followed by a 1. So every 2,3 and 4 WILL have a 1 before and after it. … |
Ques:-Audacity error while opening sound device when recording? -------------------------------------------------------------- [URL="http://www.lawebdesigning.com/"]los angeles e-Commerce[/URL] [URL="http://www.lawebdesigning.com/"]los angeles web design[/URL] [URL="http://www.lawebdesigning.com/"]los angeles web development[/URL] | |
I am attempting to learn Assembly (x86 Assembly on Windows using NASM) but am having trouble understanding what this is doing. Can someone please explain line by line what this code is doing? I have commented the lines that I think I know what they do, but I'm not sure. … | |
I don't fully understand how to modify the datapaths/control signals to account for instructions. I have to make the single-cycle datapath able to do the instructions: jr lui addi bne I've been starting at this thing for an hour or so and haven't made much progress. With the jr instruction, … | |
Hi, I am new to the world of assembly and am trying to understand the flags and interpretation between an asm file and my cpp code. I basically have an asm function called by cpp file that runs a divide routine and am dereferencing to return parameter value for pointer: … | |
Hello, I'm looking for some help regarding a MIPS program I have to code. I am very new to MIPS and to these forums so if I am doing something wrong in terms of posting a thread please inform me of it. It has an array of integer values stored … | |
I have to make a program which takes user inputs until the user enters "-1" When the user has entered that, it adds up all of the scores that have been entered and outputs the sum. [code] .data # items stored in data segment .align 0 # no automatic alignment … | |
Hello all, I am trying to write code for these three functions. 1. readdata: The readdata function has two parameters ($a0 and $a1) which contain the addresses of two integers. The function is to prompt and read two integers. The strings for the prompts are provided in the data segment. … | |
Can someone explain the INC in more detail! I know it increments a register by 1. How would you increment a register from one number till it equals another. example: CX from count 0000h until equals number placedd in DX (assume DX is not 0) Thanks | |
How do I create an int variable to store user input? I tried the code below, but when I put in a number it comes out with some random 6 digit number. My assignment is: Write a complete, commented, stand-alone MIPS program to include the same function as this C … | |
hello anyones! I'm trying to create a boot sector using assember. I have compile it into a bin file and put it into the memory stick. when I'm start the computer and press f12 and shoose my memory stick, it may write hello world on screen, but nothing happend! X( … | |
Hi, 1) below is an assembly question with the answers in red. I am trying to find out where the numbers 3, 4, 16/4, and 16 came from. I understand they are from intel for the IA32 chipset. But I can't find any table that shows where to get these … | |
Hi, i have a project na kelangan ko ilagay yung special character sa ascii to tasm.. but i dont know how kung pano i convert. the code below ay sa paglagay lang ng color o kaya pag clearscreen: mov ah, 06h mov al, 00 mov bh, 07 mov ch, 02 … | |
Hi, I've been stuck on this for a while and need some help. My program is supposed to do what this blurb of c++ does: [CODE] int add(short * a, const short *b, const short *c, int n) { for (int i=0; i<n; i++) a[i] += b[i] + c[i] + … | |
hi,all friends im new in assembly, im working on nasm and advance full screeen debug that recommend in my uni, the assembler is working ok but my dos prompt not access the debugger when i give it command like this afd ex02.com then the following error is occur 'afd' is … | |
Hi! CAN YOU PLEASE ME CODES OF SCIENTIFC CALCULATOR IN ASM TNX.. nEED IT BADLY.. | |
Hello, I am trying to write a program that reverses an array with integers. Here is what I have so far: driver.asm [CODE] # Test driver for reverser.asm # .data tsize: .word 10 tdata: .word 2, 3, 5, 7, 11, 13, 17, 19, 23, 29 .text main: la $a0, tdata … | |
I am writing a simple program to display a character in all color variations of foreground and background colors using setTextColor. It is my understanding the procedure uses 4 bits for the foreground and 4 bits for the background. In my code below there apparently is an error in the … | |
Need Help to fix this code because I can not find the errors so they can read successfully. Pila SEGMENT STACK ;Segmento de pila DW 64 DUP (?) Pila ENDS Datos SEGMENT ;SEgmento de datos Filename db 'C:\Tasm\BIN\Prue.txt',0 FHndl dw ? msjFrase db 13,10,"Escriba la frase:$" ERRORS db 13,10,"Error con … | |
How do I change the following code to be from a sum of squares to 100 to a sum of cubes? If you can help will you please point out the line(s)? Thanks. [CODE]# FILE = figA4.s # From jws@cs.uga.edu Tue Oct 7 08:46 EDT 2003 .text .align 2 .globl … | |
I need to change this code from a sum of squares to 100 to a sum of cubes. What code do i need to add or change and what lines? Thanks [CODE]# FILE = figA4.s # From jws@cs.uga.edu Tue Oct 7 08:46 EDT 2003 .text .align 2 .globl main main: … | |
Hi everyone,I need your help. I am trying to measure a lead acid charging and discharging current with the PIC. I already have my program up and running but my problem is the sensing charge and discharge current from the battery. can anyone help me with a DRAWING PLEASE????? |
The End.