3,896 Topics
![]() | |
Hey all, I've been working on this little program in NASM 16 bit assembly, under a windows operating system. It works, I just have a problem. If you don't pass it any arguments, it fails to see that there is an end of line character. You pass arguments as.. INKEY … | |
yeah i can't find this on google but i understand how to output data using 16bit (with int 21h/ah=02) say im doing some math calculations, how can i output something in a 32bit register (eax, edx...)? | |
Hi, I do not understand how the x86 processor chooses whether to not to jump for a conditional jump. My professor told me that conditional jumps are based on the OF, ZF, SF, and CF flags, but I do not understand which flags are checked under a given jump instruction... … | |
Hello. I have an assignment to make a procedure that will end a task. The manual from the university isn't quite clear about how this works. So mainly i have this problem: How does a procedure end a working task? 1) Does the bios call the procedure ? or, 2) … | |
I have written a program that multiplies 2 decimals. My multiplication output is fine. However I would like to do multiplication by passing in two parameters via command line. So far e.g. lets say if I just put '3 4' in the command line without the quotes.. nothing happens... however … | |
Hi, Can anyone please tell me how will a C++ function will start in assembly? What will the header look like? is there a conventional first few rows? What about the end of a C++ function? I am very curious about how C++ code really looks like (for example what … | |
hello sorry which method is the correct one we solved a question me and my friend in different methods and we went to our prof he said his method is the correct one and i couldn't get his idea so this one the first one is my way of solution … | |
I cant figure out how to translate this code into MIPS. Any help or tips would be helpful. int findMax (int numbers [ ], int count) { int currentMax = -1; if (count > 0) { currentMax= 0; int i = 1; while (i < count) { if (numbers[i] > … | |
[code] ; For: AT89C4051 @ 11.0592MHz ; Hardware: INTERFACED WITH ADC0831 ; Program goal: CREATE A DIGITAL VOLTAGE METER ; Assembler: M-IDE Studio for MCS-51 ;place all the usual pre code items here (INTERRUPT VECTORS, ETC) CS EQU P3.1 ;CONNECTED TO CS ON ADC0831 CLK EQU P3.0 ;CON TO CLK … | |
Hi, i need help with my code which i have been working on for a few days now! Using lc-3 assembly language i need to read in one string, check whether the string is a palindrome and display the result of the checking. I also need to echo each character … | |
The wheelchair has four wheels, which consist of two rear wheels and two front wheels. The two front wheels are pivot wheel which are set free. There is no actuator which drives both front wheels. Thus, the front wheels can move freely in rotation and straight direction. Therefore, movement of … | |
Hi All, I got the following error on creating a new virtual directory for a working web service version. What could be the issue? Since the same Web service build works fine on another machine. Description: An unhandled exception occurred during the execution of the current web request. Please review … | |
Hello everyone. I was wondering if anyone could recomend me a good(and bugless) IDE or text editor I could use with TASM(notepad is not very comfortable for code writting)? Thank you. P.S. I use TASM 5 | |
I have an application that is a COM Class invoked by a large third party app. This com class loads an assembly at the time it is loaded. and the assembly then calls a server resident windows app with screen. The assembly uses process.WaitForExit() to wait for user to close … | |
Can anyone please help me with this assignment. Its due friday and i have no clue how to do. thanks in advance for your help. _____________________________________ Question Design a MIPS assembly language program to implement the multiplication algorithm of the diagram provided in the link below [URL="http://www.mediafire.com/imageview.php?quickkey=omz4myzonuq&thumb=5"]http://www.mediafire.com/imageview.php?quickkey=omz4myzonuq&thumb=5[/URL] Demo the program … | |
Hello, I have a program written using Borland Builder C++. When ever I try to close the program, either by closing the form or having a button close the form, I get an access violation error. The error says: access violation at 0x41301e73: write address 0x1b50a18(this value changes) 89 02 … | |
This is my first time looking at anything in Pep 8 machine language and i was wondering if someone could help me understand how to do these problems . I am supposed to find the output for each program. I know the answer for the first one but I don't … | |
I suppose to write a grammar file for assembly language program by using Java in ANTLR .. but I don't know from where should I start .. and what should I do.. I am lost.. any expert with this subject could help me :( I have read a lot but … | |
since im new here and this is my first post........ i started programming as a freshman (im now a sophmore) with VB, and have since, i and my teachers feel, have mastered that, tought myself C and am pretty accomplished in that language. I am working on the object oriented … | |
I am trying to count the number of 1's in a sixteen bit word for MC68HC12. The only way I can think of is to use 16 BITA instructions, one for each bit location, then increment a counter. I suspect there is a more elegant way to do this. Could … | |
80X86 Speeding up word memory access. When the address of the first byte of a word lies at an odd address the processor must make two memory fetches for each byte of the word. But if the address of the first byte of the word lies at an even address … | |
hi.is there anyone can help me create a program using esa 8086 trainer kits..??the program need me to turn on the fan@LED for 10seconds and turn off it for 5 seconds.. | |
Just a quick question, for educational and self debugging purposes, I was wondering if it was possible to read entries from the Global Descriptor Table, for example: [code] GDT db 00,00 GDTaddr db 00,00,00,00 sgdt GDT sub dword ptr[GDTaddr],18 ;2nd Entry mov edi,dword ptr[GDTaddr] mov esi,offset entry mov ecx,8h ;entry … | |
I have an assignment due for my Assembly class and I have a quick couple of questions regarding it. The requirement is initialize 3 variables as 16bit words with values (10, -60, 30) add those values as the following equation y = var1 + var2 + var3, use no more … | |
Hello everybody. I'm trying to get the current directory, save it, changing the current dir, then coming back to the previous one. My code so far [code=asm] TITLE ep1_7 .MODEL SMALL .STACK 10h .DATA msg DB 'Current directory:',0h msg_l equ $-msg buff db 64 dup('$') ;f_handle dw 1 dup(?) .CODE … | |
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 … | |
Dear Gurus I was running on 80 GB Samsung (SATA 2) HDD on my PC P4(3GHZ) with Intel MOBO 915 GAV with XP sp2 1GB RAM on it till yesterday perfectly I got a new 160 GB WD (SATA 2) HDD for Upgradation when I installed the nu HDD to … | |
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 … | |
Hello everyone.. I have used this site off and on and have recently decided to join. I am interested in programming and 3d graphics. My main focuses in programming are: NASM\MASM assembly Ruby Batch Also, not sure if I am allowed to say this here (Might be considered advertising). I … | |
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Ă+M4ÂpÂĽ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! | |
Creating a Class Library -------------------------------------------------------------------------------- 1) Choose Fileď NewProject 2) Select ClassLibrary from the project templetes. 3) Suppose I rename it to ClassLibrary. 4) Add Code inside the block code. I write Public Class assembly Public Function add(ByVal x As Integer, ByVal y As Integer) Return x + y End … | |
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 … |
The End.