3,896 Topics

Member Avatar for
Member Avatar for Goalatio

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 …

Member Avatar for Goalatio
0
1K
Member Avatar for brando|away

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

Member Avatar for NotNull
0
143
Member Avatar for runtogetdone

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

Member Avatar for runtogetdone
0
115
Member Avatar for Alex_

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

Member Avatar for Alex_
-1
171
Member Avatar for shahab03

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 …

Member Avatar for wildgoose
0
3K
Member Avatar for pagis

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 …

Member Avatar for gerard4143
0
108
Member Avatar for namour84

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 …

Member Avatar for wildgoose
0
102
Member Avatar for Woady

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

Member Avatar for wildgoose
0
74
Member Avatar for reedpride

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

Member Avatar for reedpride
0
118
Member Avatar for daki001

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 …

Member Avatar for maaria
0
1K
Member Avatar for shihara

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 …

Member Avatar for wildgoose
0
171
Member Avatar for anish.anick

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 …

0
112
Member Avatar for Arctic wolf

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

Member Avatar for cyb3rl0rd1867
0
78
Member Avatar for garyinmiami2003

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 …

Member Avatar for kasahun
0
83
Member Avatar for aks229

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 …

Member Avatar for Woady
0
156
Member Avatar for preludeg5

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 …

Member Avatar for Ancient Dragon
0
92
Member Avatar for G_buchCSC

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 …

Member Avatar for wildgoose
0
297
Member Avatar for halona

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 …

Member Avatar for halona
0
108
Member Avatar for amrani.ah

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 …

Member Avatar for NotNull
0
234
Member Avatar for laguna92651

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 …

Member Avatar for wildgoose
0
89
Member Avatar for NotNull

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 …

Member Avatar for Evenbit
0
156
Member Avatar for amirnova

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

Member Avatar for ithelp
0
33
Member Avatar for kevincarroll

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 …

Member Avatar for mathematician
0
218
Member Avatar for RayvenHawk

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 …

Member Avatar for NotNull
0
143
Member Avatar for Alex_

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 …

Member Avatar for NotNull
0
252
Member Avatar for shahab03

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 …

Member Avatar for shahab03
0
85
Member Avatar for amw2326

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 …

Member Avatar for NotNull
0
152
Member Avatar for dmanw100

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!

Member Avatar for NotNull
0
192
Member Avatar for shopnobhumi

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 …

0
64
Member Avatar for drkrack

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 …

Member Avatar for canadaharry
0
299
Member Avatar for laguna92651

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 …

0
56
Member Avatar for coni113

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 …

0
47
Member Avatar for jhouns

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 …

Member Avatar for jhouns
0
429
Member Avatar for Goalatio

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 …

Member Avatar for edhardy
1
102
Member Avatar for zmwg

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 …

Member Avatar for zmwg
0
130
Member Avatar for wilen

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 …

Member Avatar for wilen
0
181
Member Avatar for coni113

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 …

0
59
Member Avatar for Ronen444

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 …

Member Avatar for Evenbit
0
11K
Member Avatar for assembly

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

0
49
Member Avatar for Dani

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.

Member Avatar for unimo
0
4K
Member Avatar for jedaprick

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 …

Member Avatar for wildgoose
0
92
Member Avatar for masterjiraya

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

Member Avatar for wildgoose
0
398
Member Avatar for laguna92651

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 …

Member Avatar for wildgoose
0
269
Member Avatar for rayda

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 …

Member Avatar for rayda
0
170
Member Avatar for punchinello

What is a segment selector? How is "overflow" defined in assembly programming language? Thank you very much in advance!

Member Avatar for punchinello
0
91
Member Avatar for sonia sardana

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 …

Member Avatar for henry032
-1
587
Member Avatar for wiseguy12851

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 …

0
46
Member Avatar for Goalatio

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 …

Member Avatar for Goalatio
0
3K
Member Avatar for shahab03

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.

Member Avatar for wildgoose
0
118
Member Avatar for xixpsychoxix

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 …

Member Avatar for NotNull
0
82

The End.