2,889 Topics
![]() | |
im trying to count a number of 0nes in an XOR output of binary numbers and need a control structure that will enable a register to increment it content. here is what i have so far TITLE number of ones in an xor output (XorOutputNumberOfOnes.asm) INCLUDE Irvine32.inc .code main PROC … | |
I want to write the code in machine code(binary)then convert it to gates, then to assembly. How can I start? | |
how to write a portion of simple program using assembly language based on the situation below initialized a value in EAX register as 5000h subtract 1500 from the EAX value. multiply the current value of in EAX register with EBX=5 and display the latest value in EAX register. | |
Hi, i'm totally green with assembly language. Now I need to learn it, I always wanted before to to learn this language for my own, but time, never had enough of time. Now I need to learn it from zero - to pass the laboratory at university. Mainly I'm reffering … | |
Hi ..I am aa newbie to micro controller...I have a doubt about the usage of interfacing kit......Why cant we connect a keypad directly to the input port of microcontroller(for ex. 8051)..and the output pin of uC to the led matrix ???? What is the role of interfacing kit in between … | |
Stack-based Evaluation and Simple Subroutine Linkage Hello, I have to Write a program that evaluates 3x2 – 2y2 – 5xy + 20x – 16y + 100 for integers x and y that the user enters. Prompt the user for x and y. Use pread from chapter 26 for this. Use … | |
Stack-based Evaluation and Simple Subroutine Linkage Hello, I have to Write a program that evaluates 3x2 – 2y2 – 5xy + 20x – 16y + 100 for integers x and y that the user enters. Prompt the user for x and y. Use pread from chapter 26 for this. Use … | |
I am using afd debugger which is required for my assembly language course. When running, the afd debugger shows a location of cs different from that shown in debug.exe. I also changed the location of cs in debug but afd cs is still pointing to the old location. | |
I have 16 bit program that i want to look at the source code. It was written in TASM. Is there a way to look at code. Thanks. | |
Hey guys, I am making a simple c++ compiler with Visual Studio 2010, but I am stuck on the converting it to assembly bit(with c++ coding). What I am trying to do is convert the code they type(in a cpp file) to assembly, then translate it to machine code etc. … | |
I've been trying this for 1 year now and can't seem to find anything useful (yeah, I know I suck). I've made a C++ application with WinAPI which allows me to read and write raw disk bytes with CreateFile(). However, now I need to do it with assembly so the … | |
I'm new to assembly and just trying to figure out how I would display a table with values that are serparted with lines. I'm using emu8086 or visual studio but seems more difficult to use. If you can help with code or psuedo and general direction, very much appeciated. | |
I'm having trouble finding where I am going wrong with this program which checks for perfect numbers. Here are my errors: I ran it but it's giving me an error saying Exception occurred at PC=0x00000000 Bad address in text read: 0x00000000 Attempt to execute non-instruction at 0x80000180 ## Registers: ## … | |
Hello guys, i'm trying to compute the area of a triangle using the Floating-Point stack (FPU87), but i'm having an issue outputting my value. I'm computing the area using Heron's formula: T = sqrt{s * (s - a ) * (s - b) * (s - c) } Note: s … | |
I am trying to make a program that will do addition and subtraction on positive integers of any length represented in characters using ASCII operations. The code I have work for the addition but the subtraction brakes around line 35. Thank you for the help. Code is listed below include … | |
im trying to count a number of 0nes in an XOR output of binary numbers and need a control structure that will enable a register to increment it content. here is what i have so far TITLE number of ones in an xor output (XorOutputNumberOfOnes.asm) INCLUDE Irvine32.inc .code main PROC … | |
Hello, I'm trying to write a program using MIPS Assembly Language (I write the code in TextWrangler and run it in QTSpim) I was wondering how I would go about checking if a number is perfect or not. I know my first lines of code may be partially incorrect but … | |
Hi I am testing this function itoa, but I got infinite loop. Could anyone help me to fix this? Here is my code Code blocks are created by indenting at least 4 spaces ... and can span multiple lines .data result_str: .asciiz " " #reserve 12 spaces prompt: .asciiz "Enter … | |
Hi everyone. I'm trying to convert an assembly code to its corresponding regular expression. I'm trying to match program patterns to discover anomalies. Being a novice in assembly language, i thought i would try to first convert a simple addition program to its corresponding expression before moving onto other code. … | |
I want to be able to write a program that repeatedly prompts the user to enter an integer. The program determines if that numbers is perfect and then writes out a message saying if it is or not, then prompts once again. I'll end the loop (and the entire program … | |
Hello all, I am having some trouble with my assembly code...still kind of new, but here it goes... The assignment is to desing an assembly program that uses a dialog box to prompt the user for a number. These numbers will be stored in an array. There will be an … | |
heLLO.../ I tried writing this logic gate with software (estudio) but I am finding difficulties with it.. I understand this may be entry level stuff... but i have never written assembly code in my life.. and I got this off a task.. wud appreciate if someone helps wif my questions.. … | |
I am stuck on trying to figure out a few questions. The questions are listed below. 1: Given the data below, design IA-32 instructions to find the octal string for X and save it in Y. .data X word 200 Y byte 6 dup (' ') 2: Given the data … | |
I'm trying to write a program that concatenates two null-terminated strings. (I declared the strings and buffer in the dad section) .data string1: .asciiz "In a hole in the ground” string2: .asciiz " there lived a hobbit." buffer : .space 512 The program copies the first string into the buffer … | |
Hello. Everything I have to do is just changing some specific text from first file to another text. I have a clue - read first file character by character to array while character != space. After that compare array with my replacement text and decide what action will be performed. … | |
here is code whhat is wrong, any will be appreciated ; ****************************************************************** ; Convert integer to ASCII/Binary string. ; Note, no error checking required on integer. ; ----- ; Arguments: ; 1) integer, value ; 2) string, address ; ----- ; Returns: ; ASCII/Binary string (NULL terminated) global cvtIntToASCIIBinary cvtIntToASCIIBinary: … | |
I'm totally lost when it comes to using pep/8... Here's what I need to do, can anyone help? 1. Store the decimal value 25 in memory, beginning at location 0x20, then 2. Store the decimal value 100 in memory, beginning at location 0x22, then 3. Add the two numbers that … | |
I am stuck on trying to figure out a few questions. The questions are listed below. 1: Given the data below, design IA-32 instructions to find the octal string for X and save it in Y. .data X word 200 Y byte 6 dup (' ') 2: Given the data … | |
Can you post a codes for LOGIN FORM using TASM in Assembly Language? | |
this is a little bit confusing, but can I know what does each part of this codes means.. especially those ptr, something. i understand those mov.. but the others aren't. i have googled a lot, but still can't understand.. what i know: the basic structure of tasm(.stack, .data, .code, and … | |
both 32bit and 64bit computers | |
here's what i ve done so far can anyone please check for the error i made cause the output is wrong: .model small .stack 100h .data disp db "Enter Choice:$" disp1 db "a-IT22A",0ah,0dh,"$" disp2 db "b-IT22B",0ah,0dh,"$" disp3 db "c-IT22C",0ah,0dh,"$" disp4 db "Choose Behaviour Level:$" disp5 db "1-Excellent",0ah,0dh,"$" disp6 db "2-Normal",0ah,0dh,"$" … | |
Assembly Language Step-by-Step Programming with DOS and Linux(2000) Assembly Language Step-by-Step Programming with Linux(2009) Linux only(both are by jeff duntamann) I am beginner. So which book should I choose If I want to write apps to Windows later.new book or old book?Is there a big difference? how about learning Linux … | |
Hi, I am trying to put a dll to GAC. The assembly is signed. 1.I tried draging and droping (nothing happens) 2. I tried command gacutil /i abc.dll, from visual studio command prompt. It says Assembly successfully added to the cache but when I open windows\Assembly folder, I cant see … | |
how can i write a program, which accepts the starting address (in BX) of a text (terminated by a “%”) stored in data segment and replace all lower-case letters by their upper-case counterparts. Non-alphetic characters will remain as is.(8086) | |
what are the other types of variables in tasm ex: bh,bl,cx what else is there that i can use? | |
I need to Compute 2x4 +7x3 -15x2 +3x+2 Using Horners Method. When I run this in QTSpim it doesn't give me any errors but I'm just wondering if everything is running completely right. For instance did I call "x" correctly? I'm trying to load the value for x from memory … | |
.model small .stack 100h .code start: xor cx, cx mov ah, 1h @loop: int 21h cmp al, 0dh je @end push ax inc cx jmp @loop @end: mov ah, 2h dis: pop ax int 21h loop dis mov ah, 4ch int 21h end start | |
Hi all, I am at a lost and do not know where to start from. Here is what I have to do "Given the data below, you are to design an IA-32 assembly language program to sort array X by the number of binary 0's in each member and save … | |
Hey everyone, I am trying to create a random number generator with MIPS assembly. I have most of the code written, I just need to change my set number for a guessing game to a random number. I also want to ask the user if they'd like to play again. … | |
Hey all, admittedly this is some homework help. I'm trying to write a program which takes a string in of hex characters, calls an assembler function which gives me the decimal value of the hex string. That assembler function calls a "checker" function in C which makes sure each character … | |
Hey guys. I was running assembly lang on visual studio but when I debug it, the cmd prompt window doesn't stay on. It displays the output and disappears immediately giving you no chance to take a really good look at your output. How to solve it? Thank you. | |
I am a beginner in learning assembly language. I wanted to know which assembler would be best to use between NASM and MASM in today's context. Also, can you give a link to documentation on these assemblers?And tutorial specific for these assembler (as assembly is not standardized) | |
Here is the instructions given: Use a loop with indirect or indexed addressing to reverse the elements of an integer array in place. Do not copy the elements to any other array. Use the SIZEOF, TYPE, and LENGTHOF operators to make the program as flexible as possible if the array … | |
I have 9 decimal numbers in A3, i need to output them 3 at a time and I'm not sure how. EX) A3 holds '14 8 6 8 5 4 6 4 4' [INDENT]It should display[/INDENT] 14 8 6 8 5 4 6 4 4 | |
hi all, total noob here with assembly. I'm working on a project for one my classes and for some reason we all keep getting segmentation faults when attempting to run the program. I can't for the life of me figure out what the heck is going on and why this … | |
Hey guys, first, i wanna say sorry if i'm not making any effort on doing my job here, but im really new to assembly language, i just started like a month ago without any good source. I got a problem here, i was asked to make a program which a … | |
Hey guys, i'm trying to compile this piece of code with nasm in Ubuntu. It's a boot loader for a simple operational system i'm doing as a university project. [CODE][BITS 16] ; 16 bit instructions [ORG 0x7C00] jmp word load db "ONYXDISK" ; OEM Label String dw 512 ; Bytes … | |
| |
I am new to learning assembly language. I wanted to know if using HLA assembler by Randall Hyde would be a good option for a beginner like me? It seems good on documentation and educational material available on author's site but i wanted to take recommendations from you guys on … |
The End.