2,889 Topics
![]() | |
OpenWatcom has a very nice feature in its C language which allows you to code assembly language procedures/functions that you can pass parameters to, receive return values and whose register usage is integrated into the C code optimization. Compare this with the classic MS construct `_asm` and `_asm {}` which … | |
Write an 8086 assembly language program that will read a single byte arbitrary hex value declared in the data section of the code, convert this value into decimal, display it on the screen and then exit back to DOS. For example, if the value defined in your data section is: … | |
Hi all, I,m reading "Art of assembly language" and author says that he had included a library files on a companion cd-rom, but I had downloaded the book for free on the internet and now i don't have these files,can you help me to find them? | |
I used a guide from Ticalc.org. ANd the assembler gave me this code, could someone please tell me what's wrong? I have all the requirements that are required for TASM. Heres the error that MS-DOS had given me. C:\ASM\TASM>asm hello ==== Now assembling hello.z80 for the TI-83 Plus ==== TASM … | |
hi! i'm starting to program in asm (i have a school project). i'm programming in intel asm for an 8088 simulator (the one in tanenbaum's "structured computer organization" book) i have a question: is it a mistake to write subroutines that use variables to store (intermediate and return) values? shouldn't … | |
Hi, I would like to detect when a person loggs off or shutdown or restart using 8051. I can't get any information on the web if eny1 have any idea please let me know. This is a process where I will detect when the user shutdown or log off, this … | |
hi! in my 8088 asm program i'm reading some text from stdin thru the [icode]GETCHAR[/icode] syscall (117), and then i have to write that text into a file, using [icode]WRITE[/icode] (4) it seems to me as there are two approaches: the first is to format the chars as a string … | |
Is there a way, in Assembly, to convert a string to an int (number)? | |
I've written the following program [code=assembly] ;print string using bios service [org 0x0100] jmp start message: db 'hello world' start: mov ah, 0x13 ;service 13-printing string mov al, 1 ;subservice 01-update cursor mov bh, 0 ;output on page 0 mov bl, 7 ;normal attribute mov dx, 0x0A03 ;row 10-column 3 … | |
hi! i'm doing a university project in asm using the assembler found in tanenbaum's book "[i]structured computer organization[/i]"([URL="ftp://ftp.cs.vu.nl/pub/evert/"]ftp here[/URL]), which produces code to be run on a [B]8088[/B] emulator (s88) so, what i wanted to ask is: say i want to call a subroutine that needs some variables. the most … | |
please help me how to program a timer using assembly language in PIC 16F84A. | |
Hi everyone!Can you please help me with my project.My problem goes like this: I have to make a bcd coded program in finding the modulo of a number,assemble it in masm and load it into the pic16f84a.I am going to use a dip switch for it's input and 1 7-segment … | |
Can u help me on converting ascii to decimal.... I've used the algorithm in the readint procedure but it doesn't work. | |
I am using the book Mastering Turbo Assembler 2nd edition using the tasm 5.0.(o book uses the version 4.0, but with a lot of cost that I got to find it was the version 5.0) the problem is that don't get to carry the programs in I darken him/it way … | |
Here is my question. We declare: var1 db 1 and consider that in memory var1 will be placed at address 0100h Now,when we move var1(byte long) in AX (which is 16 bits long) AX will be filled with value at memory location 0100h + value at 0101h, because AX must … | |
DOSSEG .MODEL SMALL .STACK 100h .DATA .CODE start: MOV AX,01h MOV DX,0Fh XCHG AX,DX PUSHF POP AX INC AX DEC AX PUSH AX POP DX ADD AX,0Ah MOV DX,02h SUB AX,DX DIV AX INT 20 END start I was hoping that after I compiled that I would be able to … | |
I have source code written in assembly for a radio tag and we need a quick way to change the id number each time it is programmed. My background is in C and I want to know if there is an equivalent to C's #define statement in assembly. The #define … | |
i am a beginner of assembly language programming particularly on that with TASM.. We are asked to code a program wherein the user will asked to input a character or a word and then it will print the number of characters inputted by the user.. counting number of characters includes … | |
Hi guys! I'm trying to code in NASM, Real-Mode a simple keylogger which saves keystrokes in a text file(log.txt). I only want it to work in the dos prompt, not the dangerous keylogger type. Only te simple one. Help please? Thanks! | |
Hi, I currently have an task to complete on Assembly. I have been supplid the following code [code]#include <iostream> //for cin >> and cout << #include <conio.h> //for _kbhit using namespace std; #define dollarchar '$' const int maxchars = 5; // you may alter this but it should be at … | |
This is a very quick and easy question: How do I move a literal value into a register? I need to move the value 2 into a register with address 0x0800 of a dsPIC30F6014A. I have tried the following: [CODE]MOV #0x0002, [0x0802];[/CODE] but I get an error message stating "Invalid … | |
I'm trying to create a program where the user enters a digit(more than one digit) and am planning to print the ascii version afterwards. Here's my source code with comments on the INPUT area. The input is a LOOP where it keeps asking the user to enter a number until … | |
I tried creating a program that computes for a factorial of a number. So assuming that the user has entered a SINGLE digit number like '5' the output would be '120'. Every input is a hexadecimal so I converted the input '5' hexadecimal into it's decimal version and there were … | |
How to make frequency counter programming use AT8953 | |
Hi I need to do a correlation of 40 samples using a dsPIC30F6014A (@80Mhz) in less than 15us, but found that when I write the correlation in C, it takes way too long (about 40us). I came accross the MAC function in assembly, which (if I can get it going) … | |
HI all, I'm a newbie here. I need your help, does one of you know how is the code to countdown from 99 with 7 segment and atmel 89s51 or 89s52? plz help me soon.. | |
hey all:) is there is a code in assembly language similer to if - else statement in c language??:?: i want to write a program to calculate the factorial of any no. using assembly and i need if - else statement in this program plz help me as fast as … | |
if any one can please help me with the code please emailme at <snipped email> the code i wrote is [code] MVI E,17H MVI C,3BH MOV D,C L1: MVI A,00H OUT 01H OUT 02H L2: CMP C JZ L3 DAA OUT 03H LXI H,03E8H D1: MVI B,0D6H D2: DCR B … | |
Hello, I am working on a very simple bootloader for my 80386 AMD CPU in assembly, my assembler is NASM and I am wondering why this code is not working properly. When I boot from my floppy disk It says reading DMI pool data and than an error. Is it … | |
I've been trying to find time to learn Assembly through the HIDE HLA IDE, but I am completely ignorant when it comes to Assembly. I do not know if my code will be portable when I start learning it. Do other Assembly languages conform to the same standards, or is … | |
I am trying to print a two-dimensional array to the screen. My algorithm probably isn't correct but I am having trouble even getting the process to work. on the call I get ----error A2206: missing operator in expression This line add ebx,tmpRowSize * rowIndex I get ------error A2026: constant expected … | |
:sad: Will AnyOne Please give me some basics of Assembly Language And its compiler as well as ide:( | |
Hi I am wanting to make a board with about 80 LED's for my son's room. The LEDs must brighten and dim. I am aiming to make it look like the stars at night with the LEDs mounted on a black perspex plate, while also acting as a sort on … | |
What are the applications of Assembly Language where any high level language becomes insufficient | |
![]() | Ok, so this might seem stupid.. but I am just trying to get my head around it. I have 32bit registers (longword size). Unsigned values are values from 0 to 255. Adding two unsigned 128 bit values... So do I need to use 4 registers per value and add the … |
I'm trying to call the function fgets to read from standard input. How do I get the FILE* stdin in assembly? I'm using nasm on cygwin. Thanks in advance. | |
Why isn't the mReadkey macro outputting the string "Please enter...." ? [CODE] TITLE MASM Template (main.asm) ; Program: Chapter 10 Problem 1-5 ; Author: Jon Wayman ; Created Date: July 17th,2008 ; Revision date: INCLUDE Irvine32.inc INCLUDE Macros.inc ;------------------------------- mReadkey MACRO ; ; This macro asks user to press any … | |
Im 26 , i am teaching my self ASM. Im making a custom midi interface. Im using pic16f628a because i have 3 of em and a chip programmer here. I understand a bunch compared to when i first began. But though i can reverse ultra simple lines of code im … | |
Does anyone know of a typing program where you can load your own materials to use for practice, i.e., an old novel you enjoy or a passages from a favorite author? I know someone in this group could design such a program but I would expect there is already something … | |
Hey guys, I am new to assembly language, so to those of you that are good at it, how do I write a beep(ex.doorbell) in assembly? Any type of beep, just so I have an idea of how it's done. Now to those of you who will answer this, thanks … | |
I am stuck on problem 7 that is outlined clearly. I am trying to create a process that changes all of the non-prime number elements of a 65,000 element array to 1. Then I would like to verify that array was marked correctly so that only prime numbers have 0's … | |
Hello. I'm kinda new to assembly and i've been using the general purpose registers as my variables although it's not enough cause the're only like 4 of them.. I need you to teach me how to declare a simple variable and how to access and use them. A simple example … | |
Hi, I am doing final year project on embedded system, which is silrtos port on 8051 micro-controller. I would like to know anyone ever tried silrtos on 8051 micro-controller? Can someone help me in porting silrtos on 8051. I will be highly thankful. Cheers, Monica S | |
I am looking for assembler language in lc3 to sort an array string in ascending and descending order off of a string. can anyone help me? | |
![]() | This is for the 68k series. This was a question in an exam I have already done. (Didn't do well). I'd just like to know if I answered this right at all! State the value of the register and the value of the flags in the CCR after each instruction. … |
Hey, does anybody know any good tutorials for MPASM for the 16F PIC micro controllers? Thanks for any help. Chris | |
Hello. I recently began learning Assembly language using free tutorials I get off the Internet, and am planning to write my own tutorial soon. But as I'm a newbie at this, I'd like to get some facts stragiht first: 1. What does "DOSSEG" stand for? 2. I see lots of … | |
Hey guys... this is my first time working with assembler, so please be patient with me! I am currently taking a course in assembler and have had a couple of basic assignments so far (mainly number systems, adding subtracting, two's complements etc etc). This is my first major (you may … | |
Please anybody tell me about the assembly language and the use of it. | |
Hi: This is the question with my answer. Can you please check and tell me if my answer is correct or if it needs any sort of improvement? 1. Given the data below, design IA-32 instructions to add the two numbers in x and y using ascii operations and save … |
The End.