2,878 Topics

Member Avatar for
Member Avatar for losh177

Hi everyone, I'm trying to figure out if there is any way to do exponents using bit shifting. I know the following: x *= 2 --> x << 2 x /= 2 --> x >> 2 pow(2, x) --> 1 << x i'm looking for the equivalent bitshift, if any, …

Member Avatar for turboscrew
0
1K
Member Avatar for Andrew_6

la $a1, answer li $v1, 4 syscall move $a0, $v0 # move value of recursion to print li $v0, 1 # print integer value syscall # executes print li $v0,10 # call to exit syscall # executes exit The uncommented section is the area giving me problems, answer is a …

Member Avatar for turboscrew
0
183
Member Avatar for kyle.mace.35

I need help converting ascii to hex. This is my code so far. ASCII DB 0DH,0AH,'THE ASCII CODE OF $' HEX DB ?,' IN HEX IS $' CHAR DB ?,'$' .CODE MAIN PROC ;initialize DS MOV AX,@DATA MOV DS,AX REPEAT: LEA DX,MSG ;get message MOV AH,9 ;display string function INT …

Member Avatar for Assembly Guy
0
3K
Member Avatar for ryanpalma0794
Member Avatar for Rahul47

5 in decimal = 0101 in binary. Its 1's Complement is 1010. Adding 1 to it gives 2's Complement which is 1011. Now 1011 also represents 11 in decimal. How to differentiate +ve and -ve numbers in Binary ?

Member Avatar for Labdabeta
0
235
Member Avatar for cwarn23

Hi, recently I have wanted to learn how to write Windows native binary code to make a binary script which in one form or another will display hello world. I am hoping to eventually create a more efficient compiler using this method but as you should understand already, this is …

Member Avatar for Schol-R-LEA
0
377
Member Avatar for AnhD675

I am using this lex program to analyze the usage of each register, whether they are used as a source, a destination, or used as an indirect addressing, these are my codes, i have to analyze all 12 registers...is there any other efficient way to do these as oppose to …

Member Avatar for Assembly Guy
0
202
Member Avatar for ccbuilder

Can anyone tell me how to move the carry, to another register. because I'm using the ror command to put bits into the carry but unsure how to move take the carry value and store somewhere else

Member Avatar for ShiftLeft
0
82
Member Avatar for ccbuilder

I have recently started assembler I am trying to send the letter H, to my LCD screen using basic assembly language, but it doesn't work. I'm using parallax 2x16 lcd http://learn.parallax.com/KickStart/27977 and Rx is hooked up to portb7. Atmega32 can someone tell what's wrong, because i couldn't any example code …

Member Avatar for ccbuilder
0
223
Member Avatar for Sepand_1

Hello, I want to add 3 digits (1+2+3) together but im getting wiered char instead of the resault. please advice where am i wrong. comments are added for more information they are not included in pep8 object codes. Thanks. D1 00 14 ;First number 71 00 16 ;Add the two …

Member Avatar for Sepand_1
0
264
Member Avatar for nyfan68

Hello all, I have a test tomorrow on MIPS assembly language, and there is a section where I need to convert pseudocode into MIPS. I was wondering if there were any websites/tutorial that can help with this. The textbook that we use for the class is not very good at …

Member Avatar for Assembly Guy
-2
392
Member Avatar for joester007

> I am trying to make a program that can convert decimals to binary. But there's no standard out that prints in binary. Can some one explain how I can do this. Any help will be appreciated. thanks. program DecimalToBinary; #include( "stdlib.hhf" ); static iNumber: int8 := 8; begin DecimalToBinary; …

Member Avatar for Assembly Guy
1
195
Member Avatar for ITOzann

I'm having a hard time understanding why my MIPS program is not outputing the expected result. Please refer to the c++ code, followed is my version of mips **The C++ version:** #include <iostream> using namespace std; int x[10] = {0}; int pos[10] = {-1, -1, -1, -1, -1, -1, -1, …

Member Avatar for ITOzann
0
220
Member Avatar for Assembly Guy

**NOTE** This code won't work at the application level. It directly addresses memory at 0xB8000 which will result in a segfault at the application level. This code must be part of an OS or an application in a not-so-secure operating system like DOS, where applications can directly address any part …

Member Avatar for Assembly Guy
0
450
Member Avatar for sagngh8

Hi Everyone, How important is for computer programmers to learn assembly language.I am a C# programmer and i haven't program in assembly language at all.Is it really worth learning assembly language for high level language programmers. Thanks.

Member Avatar for mathematician
0
781
Member Avatar for minyoung.han.127

Consider a computer that has a number of registers such that the three registers R0 = 1500, R1 = 4500, and R2 = 1000. Show the effective address of memory and the registers’ contents in each of the following instructions (assume that all numbers are decimal). (a) ADD (R0)+, R2 …

Member Avatar for Assembly Guy
0
176
Member Avatar for Karkalash

Hello: Need some help on how I can pass the following test: 00AA10A4 lea ecx,[eax-1] 00AA10A7 test eax,ecx 00AA10A9 je LockFunc2+27h (0AA10B1h) From my understanding, lea in this case is simply doing ecx = eax - 1 (at least thats what I can observe from debugging) However I keep failing …

Member Avatar for Karkalash
0
154
Member Avatar for zmem32

I'm not sure what the the code is addressing in each of these addressing modes. I know that the opcode is moving data, but where is the code addressing the code at in each addressing modes: register addressing > mov ax, bx immediate > mov ax, 1 or > mov …

Member Avatar for zmem32
0
84
Member Avatar for drdhungana

Hi I am looking for a Assembly Language Instructor for myself. I don't have programming background wants to learn Assembly Language Programming. Please help me. Email me at drd_ram@Hotmail.com

Member Avatar for Assembly Guy
0
190
Member Avatar for angela.hach.1

Floyd-Warshall(G) n=|V[G]| for (int i=1;i<=numNodes;i++) if connection weightmatrix[i][j]=weight; else weightmatrix[i][j] = infinite; if i=j weightmatrix [i][j]=0; for (int k=1; k<=numNodes; k++) for (int i=1; i<=numnodes; i++) for (int j=1; j<=numnodes; j++) a=weightmatrix[i][k]+weightmatrix[k][j]; if(a<weightmatrix[i][j]){ weightmatrix[i][j]=a;} return weightmatrix, matrixintnode;

Member Avatar for Assembly Guy
0
192
Member Avatar for MasterHacker110

I am writing a very simple boot and kernel in asm and c++. The thing is my development system is windows and I cannot use cpu interupts on windows, or can I? I dont think that my newly created kernel will be able to understand invoke ConsoleA or an of …

Member Avatar for Schol-R-LEA
0
198
Member Avatar for kal_crazy

Is anyone familiar with the CPUSIM 3.6.9 Wombat Machine 1.1 ? I need help on how to make a loop with machine language.

Member Avatar for kal_crazy
0
166
Member Avatar for lupacarjie

Hello! I am creating an assembly program that accepts a single character and displays the alphabet in reverse. The requirements are (1) The input character should be displayed (2) The alphabet should be displayed vertically and (3) Only the letter 'Z' should be accepted as input. I have managed to …

Member Avatar for lupacarjie
0
9K
Member Avatar for Kignoumba

Can someone help me out here? i'm trying to write a program on 8051 assembly, my topic is a digital time zone clock with 7segment segment display with a 4x4 keypad , were each key if the time of one country. and i can't attribute the time to keys. thanks …

Member Avatar for rubberman
0
277
Member Avatar for nolife

hi every body i have a litle problem , but very big for my application in windows XP i make a regasm /codebase my.dll and it's cool with windows framework v2.0 but in windows 7 when i install the same framwork the regasm do not work , so help i …

Member Avatar for nolife
0
78
Member Avatar for Haquo

> 8086 Interpreter: This program should allow the user to type in 8086 assembly language programs, syntax check them line by line, and run them. This is my summer project for this year, I just want to better understand, what do I have to do. Is a interpreter the same …

Member Avatar for Assembly Guy
0
655
Member Avatar for ww33ww

Hello how can i input a number composed from 2 digit and i print it! I tried but i can't mov ah,1 int 21h to input one number like 1 or 5 .... But how can i input number like 34 or 19 ....and i print it!?

Member Avatar for arya.herro
0
2K
Member Avatar for udorngrul

I need help printing 5 Fibonacci numbers per line. The user is asked how may numbers would they want printed and if the user indicates they want 15 numbers printed then it should look like this: 1 1 2 3 5 8 13 21 34 55 89 144 233 377 …

Member Avatar for Unimportant
0
3K
Member Avatar for bettybarnes

So I want to convert this C language program to Assembly: void main { int year; printf("Enter the year: "); scanf("%d",&year); if(year%400 ==0 || (year%100 != 0 && year%4 == 0)) { printf("Year %d is a leap year",year); } else { printf("Year %d is not a leap year",year); } } …

Member Avatar for poloblue
0
478
Member Avatar for enuma.cynthia

assuming you are given a set of signed integers in bytes with the following; +13,-10,+19,+14,-18,-9,+12 and +16,write an assembly language program to calculate the average.show how the flages are affectd on every addition.

Member Avatar for deceptikon
0
41

The End.