2,878 Topics

Member Avatar for
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
58
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
61
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
92
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
118
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
59
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
141
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
90
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
157
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
122
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
116
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
116
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
52
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
52
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
47
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
112
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
43
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
118
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
106
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
156
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
64
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
35
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
63
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
125
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
117
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
52
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
51
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
86
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
122
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
76

The End.