2,888 Topics
| |
I need to write a MIPS program will let the user to enter strings one per line representing valid decimal integers in the range 0 to 999999999999. I need to use 64 bits for each integer. and use some method to convert ascii to integer. here is an example that … | |
so I am working on an assignment in class, and I've hit a road block. the assignment is to replace certain letters (b, c) with others, (x, y). Right now, my program is not recognizing 'b' in ebx, and the second letter in the array, 'b', (stored in eax) as … | |
Hello, I was just wondering if the hlt instruction would produce a blinking cursor at the command line until enter is pressed or if its use is not noticeable to the user. Google wasn't too helpful for the specifics of the instruction. Thanks! | |
I am trying to convert some instruction to MIPS code. But have no idea how to do that.. i know c language so i can decode it to C but dont know how to convert it to MIPS. 1.I need to write a main 2. create an array of 10 … | |
I am trying to understand how assembly is translated into machine language. I understand how to get the machine coding formats but I'm not sure how to calculate 'rr' in all cases. For the example example bra is 20 rr or 20 03, I know that the relative offset is … | |
I'm writing a function write_unsigned_int to convert a number to its ascii to write to a string buffer. So far I can only get it to write to the string buffer backwards. Should I create a new buffer and then reverse it after, or is there a simpler way to … | |
Okay, this is an annoying problem i'm making a command line operating system bootable from a floppy disk and the way i'm testing it atm is by inputting a command and outputting it. The reason for this is that i want to know EXACTLY what its doing with the string … | |
I'm writing a program that takes input for an an array. It then uses a loop to replace the values in another array that has preset values with the values from the array that received input. When I try to move the values though...well let's say arrayA is the one … | |
i just want to ask how can i add a another value in this code this is for educational purpose and im not familiar with asm i know java programming but this is far different mov eax,[000003E8+100] crash my system honestly i dont know how to add in asm any … | |
I'm writing a project that's described here: [url]http://inst.eecs.berkeley.edu/~cs61cl/fa09/projects/proj2.html[/url] Basically I parse through the *format string and when I see format specifiers like "%x" I insert the correct value that's part of the argument. I'm not sure how to start on this. More specifically, I don't understand how to write to … | |
Hello, I'm having this little problem, and I will thank you if you help me with it. What I'm trying to do is to display the contents of various 16-bit registers (e.g. AX, BX, CX, DX), however without success; Well, what I tried to do is to check the total … | |
could you help me to find example codes,online adresses,e-books etc. about assembly language for [COLOR="Red"]motorola 6800[/COLOR] please.... thank for your helps.... | |
This is a program I wrote for my x86 assembly class which computes the sum of n numbers. It uses Irvine32.inc which came with the textbook. | |
I HAVE AN .EXE FILE I WANT TO MESS AUROUND WITH BUT WHEN I OPEN IT WITH NOTEPAD ++ IT LOOKS LIKE THIS GARBAGE CRAP ¦ª2'I¶ÛC„ ˆ¶ÀÕSsÚ4eŒ˜¤ÂÇa1”¹²Ô9& Û¤éŽ3H ˜©5 †éØM¤•;L˜!S>@÷¤Æ@féRH @ôÆ8Óÿ‡ŠVÊÚ4‚¬(aÝ0&›Cm‹Ïnš´€Ø¦˜Á „ l_IË+M4p¥9”¢lsXãCs[CB0ɶaHž|§&ÞPnÛ Ø WHAT DO I NEED TO DO TO TRANSFORM IT INTO AN EASY TO READ SCRIPT OR LANGUAGE … | |
[CODE=assembler] .model small .stack 64 .data select db"Enter the your desired option$" msg1 db "[1]display box and your name$" msg2 db "[2]enter your name$" msg3 db "[3]display d to l$" msg4 db "[4]exit$" msg5 db "JOSEPHINE P.VINAS$" .code mov ax,@data mov ds,ax mov ax,0003h int 10h mov ah,02 mov dh,0 … | |
I am learning assembly on a MC68HC12. Can someone explain to me why the overflow flag, V=1, using the asr instruction on following binary number: %1111 0100 the asr shift would be; %1111 1010 V=1 another example %0000 0001 the asr shift would be; %0000 0000 why does V=1 I … | |
i am writing a assembly code to count the number of words in a sentence. below is my coding: [CODE].model small .stack 200h .386 .data message1 db 10,13, 'Word counter : Enter the sentence to be calculated$' result db 10,13, 'Number of words : $' counter db 5,6 dup(0) sentence … | |
What is a segment selector? How is "overflow" defined in assembly programming language? Thank you very much in advance! | |
I've written this Hello World Software with much help in assembly using emu8086 emulator, I'm at chapter 5 of "The Art of Assembly" book and before I continue I need to be able to make this program bootable since I can't very well distribute emulated and virtual software. I haven't … | |
Would anyone know how to get command-line arguments in NASM16? I am on a Windows XP. I have tried a great deal of things and spent much time searching for an answer to this. What I ment by command line arguments, something simple like this would be enough. Filename: Hello1 … | |
what is READ_FLT? any thoughts on the question? If a program employs a READ_FLT syscall to input the floating point value 999999999999.0, by how much would the value returned by the syscall differ from the actual value typed in? Explain the error, if any. | |
Hi. I am trying to change an interrupt vector in assembly language to point to a new routine but can't quite figure out how to do it. I am trying to replace it as such: [code] InterruptRoutine: mov ah,0x0 int 0x16 iret InstallInterrupt: mov ax,0x0 mov es,ax mov di,Vector*4 push … | |
anyone got any idea how does the CPU determines which register should receive the result produced by an instruction? thanks | |
can someone remind me how to loop a character please. I'm begging you all. my output must be this: *********************************************** * * * * * * * * *********************************************** i know how to set the color attribute for a character, my problem is I for got now on how to … | |
here is an example of floating point representation ... I am unable to understand whats going on. book isnt much help except that I know the bias part and that the matissa is 23 bit and exponent is 8 bits. however I don't understand how the conversion is being done … | |
Write a main program for the MIPS machine that uses syscall to repeatedly prompt the user to enter strings one per line representing valid decimal integers in the range 0 to 999999999999. Use 64 bits for each integer. Valid strings may only contain the characters ‘0’ through ‘9’. All strings … | |
so i have this following code which does this simple thing in mips mult $t0, $t1 $t0 = -763 $t1 = 29 when I move the values from hi and lo registers to $t2 and $t3 i get following values for each $t2 = -1 and $t3 = -22127 is … | |
Hi, I need this program to print ascii code that I entered to al. The problem is that it is always print the char of the value ; i.e If I type a, al=61. How I print just the '61' and not the 'a' ? Here is my code : … | |
I am trying to find out if the Auxiliary carry flag only turns on when the 4th bit carries out from the 3rd bit or if it will turn on for the 7th to 8th bit aswell. This is what I did already: mov ax, 0Fh ; this is the … | |
The End.