2,888 Topics

Member Avatar for
Member Avatar for SnowyCloud

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 …

Member Avatar for mathematician
0
145
Member Avatar for user543820

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

Member Avatar for NotNull
0
137
Member Avatar for 3drenderer

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 …

Member Avatar for NotNull
0
99
Member Avatar for gieri002

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 …

0
54
Member Avatar for nnlink
Member Avatar for phillytennisguy

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 …

Member Avatar for phillytennisguy
0
530
Member Avatar for wiseguy12851

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 …

Member Avatar for vijayan121
0
269
Member Avatar for garu525

I'm starting to learn the Pep/8 simulator. Do you know where i can find some tutorials? Thanks.

Member Avatar for garu525
0
583
Member Avatar for khulaffu

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). …

Member Avatar for Schol-R-LEA
0
153
Member Avatar for msg

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

Member Avatar for user543820
0
232
Member Avatar for aabi

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 …

Member Avatar for GuitarComet
0
77
Member Avatar for user543820
Member Avatar for user543820
0
240
Member Avatar for jayvee1027

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.

0
44
Member Avatar for yowsh

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 …

Member Avatar for Schol-R-LEA
0
115
Member Avatar for vani.

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 …

0
47
Member Avatar for eyesonly844

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.

Member Avatar for Schol-R-LEA
0
54
Member Avatar for yowsh

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]

Member Avatar for Schol-R-LEA
0
177
Member Avatar for Shikhin

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 …

Member Avatar for Shikhin
0
240
Member Avatar for yowsh

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 …

Member Avatar for yowsh
0
117
Member Avatar for Garrett2011

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 …

Member Avatar for TechnoCat
0
136
Member Avatar for myk45

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 …

0
50
Member Avatar for davibq

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 …

-1
81
Member Avatar for uditiiita

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 …

0
33
Member Avatar for uditiiita

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 .

0
42
Member Avatar for cf1709

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 …

0
68
Member Avatar for zunnur

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. …

Member Avatar for rjong
0
533
Member Avatar for Josue198s

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. …

0
110
Member Avatar for lawebdesigning

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]

0
64
Member Avatar for Haxifix

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. …

Member Avatar for Ancient Dragon
0
180
Member Avatar for bStiffler582

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, …

Member Avatar for LibraTaimur
0
154

The End.