2,889 Topics
![]() | |
Hey again everyone, it's been a while since I've posted here.. What I'm trying to do, is get the command-line argument and convert it to hexidecimal. Example, if the file is named 'test', you would call it with test 72 Or something similar. I have it working, but after MUCH … | |
Hi, I'm trying to manually translate 16-bit assembly intruction into the format Instruction Prefix-Opcode-ModR/M-SIB-Address Displacenebt-Immediate Data for an Intel8086. I'm having problems trying to figurit out when to use the respective values for the Mod, the R/M. If anyone could point a good book or site for this type of … | |
I am starting to write a assembly program for a mc68hc12. I will be reading a 8 bit signed number into PortA and outputting the results to 7 segment LED's, common anode. I will be using Port P to ouput the segments and PortCan to control the LED's displayed. I … | |
The following program is written in MIPS and is supposed to calculate values based on the input of an integer. When its run through SPIM I get an error on the last line that doesn't make any sense to me. If anyone can tell me whats wrong it would be … | |
Hello I've got a project running at school where I've got to create Pacman, everything is going great. But I want to load an image to use as ghost, background or pacman. Currently it's a square which is pretty stupid. But how can I convert the image from jpg, gif … | |
Let's say you have some code in the .data section: [CODE]doodle db "*****,3,*****"[/CODE] Is there anyway to change the ,3, into something else? (Perhaps a smiley face or somesuch.) I was thinking if I had the registers all set up, I could do something like: [CODE] ~~assume there is code … | |
Hi guys and girls I am writing a program to solve a linear system equations using gaussian elimination method by taking the factors and storing them in a NxN+1 matrix, this matrix can take integer numbers as well as floating point numbers i need help in translating this program to … | |
hello everyone. i am in a great need fo hamming disnatce code in nasm(8088). i will be very thankful | |
Hi, What is the problem of this program ? It should print intertech systems, but it doesn't do . This program must convert all letters of the string to lowercase character . [code] Page 60 , 132 TITLE A08CASE (COM) Change uppercase to lowercase .MODEL SMALL .CODE ORG 100H BEGIN: … | |
Hi, I'm trying to make a very simple program that will accept a digital input and respond by setting an output high. When the input goes low again, the output should go low and then after a short delay, a second output will toggle high then low. My code below … | |
im writing a win32 dll and i need a procedure in this format (C++): [code] int __stdcall procname(HWND mWnd, HWND aWnd, char *data, char *parms, BOOL show, BOOL nopause) [/code] so how can i do this? why won't this work (fasm): [code] section '.data' data readable msg db "Text",0 section … | |
hi guys i want ideas of projects but new one and the project will be done in 3 weeks with a team of 3 persons any idea ? | |
Hi, how is the system function done? Atm I am doing it like this: invoke ShellExecute, NULL, addr szopen, addr cmdexe, addr szparams, NULL, SW_SHOW But it requires the program to know the persons homedrive. Is there a system(); function that can be used in assembly? If so, what library … | |
Hey everyone I am trying to read a hexadecimal registry value from a registry key, I am opening the key and then calling RegQueryEx, but I can't seem to get it right. Can someone post an example. Thanks. | |
hi dears. i wanna sum two 5 numbers to gether. like 12345 + 12345 i used 3 proc. one for get. one for calc and one for print. i can get them but i cant calc them right. please help me. | |
Write a program that accepts a string from the user. You can assume the length of the string will be less than 30 characters and only lower case letters are entered. Your program should then display the string in sorted order and determine if the string entered is a palindrome. … | |
I have a project where we have to "clean" a formula. So if [code] 17 + 18/abc454 * (9/10) [/code] is put in then it should output [code] 17+18/454*(9/10) [/code] Well i got that part and what i do is store it in a buffer (.space) because then i have … | |
hey all, I'm just starting out with assembly in college and I wrote a program for an assignment to calculate prime numbers, and it works, however if you comment out the line in the code, it gives out this list of numbers: [CODE] 3 is prime 5 is prime 7 … | |
I'm still doing some cpuid code; but now I want to get the brand string. I've sort of got about half of it... If you have a browser that supports it; search for "/* relevant */" to seek straight to the relevant part of the code Important edit: if I … | |
I want to write using loop . I TRY AND TRY AGAIN BUT unsuccessful. Please help me. HOW CAN I DO THAT ? * ** *** **** ***** ****** | |
Hey guyzzz im in trouble ,ma project is this, Develop a thermometer that shows the histogram of the temperatures of last 12 hours. (-You may use the LCD panel as the display. -Current reading should be identified by blinking the current reading.) .................... my coding is working 100% and showing … | |
Give me convience or give me death! The would-be programmer is introduced in some way to what could be compared to a CS101 course. He is taught about algorithms, variables, procedures, recursive functions, data structures and arrays. One of the fundamental steps for any program development is ease of program … | |
I am having trouble with the following script: [code] .386 .model flat, stdcall option casemap:none include \masm32\include\windows.inc include \masm32\include\kernel32.inc include \masm32\include\user32.inc includelib \masm32\lib\kernel32.lib includelib \masm32\lib\user32.lib ;adding all my libs .data nsv db "APPDATA", 0 ;i want to use this in getenv(); fnsv db 260 dUP(0) ; char fnsv[260]; ffn db … | |
Hi.The following program shows switching from RM to PM and back.At the end it has to print "Hello".The problem is it doesn't show the message. Can anybody help me.Thank you. P.S. For compilation use these commands: tasm /m name.asm tlink /x /3 name.asm Here is my code [CODE].386p data segment … | |
We are currently using assembly language in one of my classes. I have to write a loop that adds up numbers and takes the sum, however at the end of the loop (when a user types in a negative number) it is supposed to start over... My problem is I … | |
Hi, how is this done in assembly? [CODE=c++] ofstream writer("settings.ini"); writer << "launch: 1" ifstream reader("settings.ini") char buffer[MAX_PATH]; reader.getline(buffer, MAX_PATH); HANDLE hFile = CreateFileA(StubPath,GENERIC_WRITE,0,0,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,0); memset(&overL, 0, sizeof(overL)); overL.Offset = 0xffffffff; //end of file overL.OffsetHigh = -1; WriteFile(hFile, Settings, strlen(Settings), &dwBytesWritten, &overL); CloseHandle(hFile);[/CODE] How would I split a string in assembly? … | |
The aim of the program was to Write a short assembly language program which creates a divide by zero trap and modify the isr so that you change the error message that the isr issues. stepintr.asm << the sample isr << built in system trap message he said. stepintr.asm contains … | |
Im writing a project in mips, and i load a bunch of inputs into memory. when i read them back out there in the same order except for the zero which ALWAYS get moved to the end of the array. I literally load the values straight into memory after reading … | |
This procedure dispatches application defined event handlers and alternately executes default process for both standard or sub/super classed windows. Map is defined as follows. In most cases I define this table in .data, but in can be in .const also. I choose writeable memory as application can redefine characteristics. [code] … | |
I'm supposed to get a 4-digit number from the user, convert it to binary (and hex), then print it out. I have absolutely no idea where to start. I know the algorithm; taking the number, diving it by 2, repeat until the number reaches 0 and the remainders of everything … | |
I have been searching and can't quite find how to call a C++ library function from masm. I would like to be able to call printf and system. Can anyone point me in the right direction? Thanks | |
Hi, I hope I'll get the answer here. Please tell me why do we divide by 32, when using the timer for serial communication to calculate the baud rate? Thanks, | |
please help me iam new in programming and had just joined it so how can i begib? i need to be professional in it< thanx | |
Hey guys. I am trying to print different messages in dependency of what char you press. In my case i use, F1,F2,F3, escape. The problem is that the first message is printed again after a char input is read, which it shouldn't! This is my code, please tell me where … | |
Hey all, i'm really confused what the heck is going on my program. It is a simple program that loops through an array of ints and finds the minimum. Here's the snippet of the code: [CODE]loopBody: mov bh, [edx][esi] ;Assigns element to bh to compare. cmp bh, bl ; loops … | |
I am writing a program to calculate how many times the hex decimal number 1ED used between memory locations 0400H and 07FFH and store the result in A ( for 8085) so my solution is : [B]MVI C,00H LXI H,0400H LXI B,03FFH MVI A,1EDH LOOP :CMP M INX H JNZ … | |
[i]Taking the "fright" out of Opcodes and Hex-numbers.[/i] High Level Assembly (HLA) is a modern [b]assembler[/b] + [b]standard library[/b] package that allows a programmer to ease his way toward ASM coding by leveraging concepts already learned from typical high-level languages. By using HLA, one can investigate and play with a … | |
Can anyone tell me what the assembly type for bottom assembly program? #DEFINE PAGE0 BCF $03,5 #DEFINE PAGE1 BSF $03,5 INDF: .EQU $00 ;page 0, 1, 2, 3 TMR0: .EQU $01 ;page 0, 2 OPTION: .EQU $01 ;page 1, 3 PCL: .EQU $02 ;page 0, 1, 2, 3 STATUS: .EQU … | |
Hi, I am just finishing up a semester at Uni that touched on Assembly with the LC-3 (Limited to around 16 instructions). I would like to look more into assembly. Specifically getting a better grasp on assembly opcodes (their purpose), and how they map to HL processes. As opcodes like … | |
When I do this: [CODE]la $a1, 9($t1)[/CODE] the code works, but when I do this: [CODE]marker: .word 9 la $a1, marker($t1)[/CODE] The code doesn't work.... I don't understand why....? | |
Hey guys, I am on the Windows OS using NASM16, and I'd like to know how to set the system time.. Code so far: [CODE][org 0100h] ;COM format %include "Lib_1\Lib1.asm" ;settime Hour minute second date month year ;settime "6" "35" "00" "06" "01" "09" ;-------------------- ;Lib1.asm ;string - Displays a … | |
Hi! First of all, I'm new to this, so I apologise in advance if this is a really simple thing... I am trying to write a code in assembly MIPS, in wich the program asks the user for the name of a file where it will read the text on … | |
I am trying to do this: z=(5*a-b/7)/(3/b+a*a) in assembly code and I keep getting some errors. Here is the code & the errs. [CODE] assume cs:code,ds:data data segment a dw 5 b dw 6 z dw 10 intermed dw ? rez db ? data ends code segment start: mov ax,data … | |
This is an example program that I am studying so that i can make my own mixed mode assembly/C program. I am having trouble understanding on the assembly code, why I have to push SI twice at different times and only pop it out once. Also why push and pop … | |
I am having a hard time getting my program to execute correctly. it is supposed to take two numbers entered by the user store them in an array, and reverse the array so when added they display correctly. i am to get the numbers using a procedure two seperate times, … | |
[QUOTE] ; Source name : EAT.ASM ; Executable name : EAT.COM ; Code model: : Real mode flat model ; Version : 1.0 ; Created date : 6/4/1999 ; Last update : 9/10/1999 ; Author : Jeff Duntemann ; Description : A simple example of a DOS .COM file programmed … | |
; this code gereates maximum factorial of 8 decimal ; since, A is a 16-bit register and can hold max value of ;65535 dec (255h). ; MOV A,#8d ; value for the factorial (1-8max) MOV B,A ; B=A MOV C,#1d ; C=1 here: ; LOOP SUB B,C ; B-1 MUL … | |
Hi, I have an assignment where i have to write a C and assembly mixed-mode program. [LIST=1] [*]The c program takes in two characters which stand for two hex characters. [*]The assembly procedure then passes each character in turn to a C function which determines if the character is a … | |
Hi, I was using C++ to try to write objects to the screen, and decided to try this in a lower level language. I have searched the web and found some sample code: [CODE] name "vga" ; this program draws a tiny rectangle in vga mode. org 100h jmp code … | |
To be upfront and all, this is indeed a homework assignment. But I'm not looking for anyone to write the code I need just help me with a few functions I'm needing to use (the book is VERY vague on how to use these instructions). Assignment is open an encrypted … |
The End.