2,889 Topics

Member Avatar for
Member Avatar for laguna92651

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 …

Member Avatar for laguna92651
0
81
Member Avatar for shadyking

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 …

0
57
Member Avatar for MacLovin

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

0
51
Member Avatar for cvfirefox

In Intel syntax: jmptable DD 755, 32, 0.0000036, 672 How to define this jmptable array GAS assembly AT&T syntax?

0
41
Member Avatar for Jacky1

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 …

0
64
Member Avatar for hellIon

.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

Member Avatar for hellIon
0
93
Member Avatar for serbanmm

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 …

Member Avatar for ithelp
0
87
Member Avatar for serbanmm

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 …

0
58
Member Avatar for hellIon

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

0
79
Member Avatar for mayafree2002

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 …

0
52
Member Avatar for Motvel

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 …

0
58
Member Avatar for carson myers

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 …

0
61
Member Avatar for laguna92651

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 …

0
64
Member Avatar for The Dark Knight

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 …

Member Avatar for carson myers
0
94
Member Avatar for raavi.munaf

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]

Member Avatar for raavi.munaf
0
123
Member Avatar for BestJewSinceJC

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?

0
61
Member Avatar for flash121

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 …

Member Avatar for flash121
0
144
Member Avatar for pocku

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 …

0
93
Member Avatar for kent01981

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 …

0
166
Member Avatar for n_borad

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 …

Member Avatar for n_borad
0
126
Member Avatar for Sci@phy

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 …

0
120
Member Avatar for zafirah_bashir

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 …

Member Avatar for NotNull
0
127
Member Avatar for raka_78

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.

0
55
Member Avatar for readwell

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 …

0
55
Member Avatar for bmwadd1ct

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 …

0
50
Member Avatar for Sci@phy

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

Member Avatar for NotNull
0
120
Member Avatar for carson myers

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 …

0
46
Member Avatar for mathematician

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 …

Member Avatar for NotNull
0
128
Member Avatar for carson myers

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 …

Member Avatar for NotNull
0
116
Member Avatar for king_khan

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

Member Avatar for NotNull
0
159
Member Avatar for phingphing

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 …

Member Avatar for NotNull
0
3K
Member Avatar for luken8r

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 …

0
67
Member Avatar for sAeNxNyA

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

0
37
Member Avatar for easy2mem

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 …

0
66
Member Avatar for cam875

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 …

Member Avatar for NotNull
0
129
Member Avatar for fleahman

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

Member Avatar for NotNull
0
123
Member Avatar for dragonboy269

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 …

0
53
Member Avatar for monkey1

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.

0
54
Member Avatar for urufukiba

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 …

Member Avatar for NotNull
0
92
Member Avatar for mustafaneguib

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 …

Member Avatar for NotNull
0
125
Member Avatar for Motvel

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

Member Avatar for NotNull
0
80
Member Avatar for panpanf

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 …

Member Avatar for Ancient Dragon
0
89
Member Avatar for cam875

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.

Member Avatar for cam875
0
76
Member Avatar for panpanf
Member Avatar for gotm

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 …

Member Avatar for Salem
0
1K
Member Avatar for NotNull

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?

0
89
Member Avatar for Mike_99

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 …

Member Avatar for Salem
0
132
Member Avatar for Mike_99

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 …

Member Avatar for Mike_99
0
122
Member Avatar for Jacky1

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 …

Member Avatar for Colin Mac
0
119
Member Avatar for dimension

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 …

Member Avatar for Colin Mac
0
149

The End.