2,889 Topics
![]() | |
I'm writing a program to output a stair step waveform from VoutA. How do I tell PORTP to output 2 volts? [code]#include "d:\miniide\hc12.inc" org $1000 ldaa #$FF staa DDRP ; configure PORTP for output ldaa #$6F staa DDRCAN ; configure PCAN6..PCAN5 for output bclr PORTCAN,$20 ; select VOUTA output xx … | |
Hi. I tried to solve the below problems, but couldnt get them right, could you please help me out how to start or explain on how to solve the problems below. thank you Write an assembly program to copy data from table1 at location 1100 to table 2 at location … | |
Hello guys I am a bit confused about somethink Consider having an 8x8 array declared like as follows : A: .word 0, 1, 2, 3, 4, 5, 6, 7 .word 7, 6, 5, 4, 3, 2, 1, 0 .word 0, 1, 2, 3, 4, 5, 6, 7 .word 7, 6, … | |
In Intel syntax: jmptable DD 755, 32, 0.0000036, 672 How to define this jmptable array GAS assembly AT&T syntax? | |
Hi I would like someone to check what am doing 1- Declare a 4-byte variable in a relocatable segment of internal directly addressable data memory. [code] x SEGMENT data RESG x x: DS 4 [/code] 2- Declare a 2-byte variable in an absolute segment of internal directly addressable data memory … | |
.model tiny .code ORG 100H HOST: mov ah,9 mov dx,OFFSET HI int 21H mov ax,4C00H int 21H HI DB 'hello world$' END HOST | |
Hello! I need to do a program in NASM language and I have no idea how to do it! The problem is the following: Write a NASM program that does the following: (i) prompts the user to input a line, (ii) detects if the input line contains ‘ end.’, and … | |
Hello! I need to do a program in NASM language and I have no idea how to do it! The problem is the following: Write a NASM program that does the following: (i) prompts the user to input a line, (ii) detects if the input line contains ‘ end.’, and … | |
can u guys pls tell me how to assemble a com file using masm32..... i am new to masm so pls give step by step instructions | |
I would like to convert string into number but AVR-8bit only has 8bit in a register and data stored as hex, not decimal. I can, however, only string less than '256' and store it into 1 register only. For example There is a string .DB '123456' I would like to … | |
Usually the keyboard place the scan code for that key in the port 0x60 and then we read from there. The question is: It's possible to access directly a memory location and to place the scan code, and then read from there? (suppose Memory Range from a USB port start … | |
I wrote a quick program into the memory using debug in an ms-dos prompt. It should output the alphabet in uppercase, and then in lowercase, like so [code] ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz [/code] instead, it writes it in uppercase and then in lowercase again and again and again until I ctrl+c the program … | |
I am new to assembly programming. I am programming for the MC68HC12. I was given a program with the opcodes XDECI, SR, Xprnt etc. I can't find any of these in my text book for the MC68. Are they for another processor, when I try to compile in CodeWarrior every … | |
Without using MUL, IMUL, DIV, IDIV instructions and any iteration, find the product of 25 and a value in BL. save your result in DL . this is a task which i need some help in .. because i cant seem to figure how can we multiply without any iteration … | |
Can any body show me the code to use usb mouse as an interface device [B]ie usb mouse driver code in .asm[COLOR="red"]?[/COLOR][/B] | |
I read about data forwarding and according to my notes, a nop (no-op) is required before a beq operation and after a lw operation. What about sw? | |
Hello! I've started learning assembly and I have some problems with a program. I'm trying to write a program that would print some text x-times (x would be inputed by me), but I always get an infinite loop, because it seems that the counter value doesn't get updated in the … | |
I'm having trouble with drawing squares on the x86 assembler using the XGA 8-bit linear frame buffer. I'm suppose to draw a large square containing a grid of smaller 12x12 squares using my own functions and this is what I have so far: [CODE][SECTION .text] ;---------------------------------------------------------------------------- ; code belongs in … | |
Hi, I am doing a doorbell using P16F84A chip. I have programmed in asm in MPLAB 8.10,but the code is not working at all. no any errors show up, but just not working. please help me out. #include P16F84A.inc __CONFIG _CP_OFF & _WDT_OFF & _PWRTE_ON & _RC_OSC errorlevel -302 org … | |
Please help me with this program Your assignment is to write an assembler program which does the following: (1) prints your name and NYIT I.D. as a first action. (2) reads in two 2-digit integers, one keystroke at a time, and operates Euclid’s algorithm on them (3) prints the result … | |
Hi! I have the following code: [CODE=asm] mov al, 5d neg al[/CODE] When it executes, CF = SF = AF = 1 Ok, I think I understand why AF (number is bigger than 00001111b ?), SF (most significant bit is now 1 not 0) But what I don't understand is … | |
i add two numbers but wen it cums to displaying the res by using service 2 of int21,,,,i get the res in hes,,i want same in dec,,,i meam like add 02,01 dispalys a res which stands for heart symbol so that i get a heratsymbol as a res instead of … | |
Hii I'm design a device using PIC16f877A, and this device have 2 input ADC. I have a problem on how to multiply 2 input from ADC. Can anyone help me, to solve this problem? a sample program will be appreciate:) so I can study it. | |
this is my main program some of my code is working from here to where i made a comment. let me explain what i am doing so far if i input a number let's say 63 111111 my program is setting this value into 00101110111 which is correct but now … | |
Your probably wondering what the title refers to so i jump to point. My dad likes writing simple programs and securing it with ridiculous forms of security that are usually easily bypass. THis time however, tired of me making jokes of his "security" he's actually done something not easily bypassed … | |
Hello to all of you! I would really appreciate somebody telling me complete step by step tutorial how to work with MASM (or TASM, but I haven't noticed it's free to download) I've tried myself MASM and TASM (some Telemark assembly, not Borland), but for some reason it won't work, … | |
I'm playing with assembler trying to get it figured out and I wrote this program that was supposed to have two values, 0 and 10, and add to the 1 and subtract from the 10 and loop, each time displaying both values, until both of them are equal... [CODE] 0 … | |
Almost every site I look on has at least one, and probably more, people who are going to write their own operating system. What's the point? When its finished the chances are nobody is going to use it - probably not even you. I might not mind spending a few … | |
Okay, so I'm well read in VB and quite an avid VB programmer but I realize that programming in visual basic isn't very marketable and above all I only use it for fun. I wanted to move to C++ but noticed that it was a LOT harder, and worked completely … | |
[B]Assembly Language[/B] Q1: For the memory location whose physical address is specified by 1256Ah, give theaddress in segments:offset form for segments 1256h and1240h Q2: If AX=FFFFh and BX= FFFFh the after the execution of the instruction ADD AX, BX.what will be status of the following flags SF,PF,ZF,CF,OF, Q:3 Suppose AX … | |
I tried looking high and low for a sample of writing a code for a Binary Tree, there isnt one or i must have missed it somewhere. This is what i would need in assembly language. [code] ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; insert Insert a new node in a binary search tree … | |
Im modifing an assembly module to add a branch to a new C function but I cant seem to get it working right. My stack is crashing and I cant track it down because, unfortunately, I dont have an emulator The original asm file is a 16 bit signed division … | |
anyone have any iddea of how to do booth algorithm using tasm to add multiply 2, 32 bit and store it in a 64 bit register | |
Hi. I have been working so hard to write this second stage loader but I cannot for the life of me figure out why it is not working. In my second stage loader it does not seem to load my kernel from disk. I have a view test points where … | |
Ok ive been working with bootstrappers and writing them in assembly for a little bit now and I can get it to work and understand how the bootsector works when it comes to hard disks and floppy disks but when dealing with flash memory like my USB flash drive im … | |
[code]08048e19 <phase_2>: 8048e19: 55 push %ebp 8048e1a: 89 e5 mov %esp,%ebp 8048e1c: 83 ec 38 sub $0x38,%esp 8048e1f: 89 5d f4 mov %ebx,-0xc(%ebp) 8048e22: 89 75 f8 mov %esi,-0x8(%ebp) 8048e25: 89 7d fc mov %edi,-0x4(%ebp) 8048e28: 8d 45 dc lea -0x24(%ebp),%eax 8048e2b: 89 44 24 04 mov %eax,0x4(%esp) 8048e2f: 8b … | |
Basically I'm looking for a special kind of Hex to ASM converter. I'm using a device called Action Replay (basically, it's a hex editor for Nintendo DS games) and I'm attempting to make codes for it using ASM (which I then convert into hex using a program, which I already … | |
I have to alphabatesize the words in a string. I have the string which is fixed and loads into a register. Now the compiler has to print the words in alphabetic order. For eg Inpt: How are you Output:are How you. Please help me. I am struggling with it. | |
hey all, im wondering how you declare a variable in a string. like say i want to declare a string saying "The number should be no less than X" and I want the X to be able to vary depending on what I have the variable for it at. i … | |
hey guys how are you all? i am working on a mini screen saver which moves the character 'A' to the end of the screen that gives the effect of it crawling on the screen. the problem with it is that the speed is too fast and i can see … | |
Hi, i want to copy a string from a register (SI), into another register (DI). But, before copying i need to scan the string for blanc space. If there is more than 1 blanc spaces (SI), i need to replace all blanc spaces with one space and put in DI. … | |
I wanna learn c++ by looking into the assembly language generated by visual studio. But i can't find a complete reference aoubt the usage of ml9. Is masm329 is tha same with ml9? If they are not the same, which one is better to write assembly language in a win32 … | |
Ok ive actually got a bootstrapper going and can display text using int10h using the BIOS interrupts but im wondering is this the only way to tell the computer what to do at the lowest level, by communicating with the BIOS service interrupts, how does windows and stuff do it. | |
Is it easy to do this? | |
I want to convert two C++ programs into MIPS assembly. Both programs compute if a given integer is prime or not. They both contain the same main() pretty much, but one uses an iterative function while one uses a recursive function. I am not too good with MIPS so I … | |
I am wondering how to use GNU as to output 16-bit DOS .com files, and how to use As to make 16-bit DOS .exe files. Can anyone help? | |
I been trying to find with instruction was executed in this waveform and I narrowed down the choices to XRL A, @R0 or ORL 04H, A here is the picture [url]http://img511.imageshack.us/img511/959/97955260mp4.jpg[/url] I choice those two out of the rest because the write and the WR did change can I get … | |
Hello Ok P1.2 is connected to a two external devices if I write a “1” to P1.2 and transistor B is OFF and transistor C is ON and I did MOV C, P1.2 instruction c = 1 right ? now since c = 1 is it because its ON or … | |
I need some help with code after a Single step through lines 1-5 using uVision2. Will the entire code segment be executed with the current values in P0? Why? Alter the value of P0 within the debugger to enable the program to continue execution. Single step through lines 6 and … | |
Hi, straight to the point, i'm working on my digital clock project using Flite 68k microprocessor. About a week now thinking what is wrong with my coding. The problem is as i run the coding it will state *** ADDRESS ERROR - ACCESS = 00400587 . Im a newbie,so did … |
The End.