2,889 Topics
![]() | |
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 … | |
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 … | |
![]() | 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 … ![]() |
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 | |
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; | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
> 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 … | |
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!? | |
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 … | |
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); } } … | |
The EE Times [URL="http://www.eetimes.com/news/latest/showArticle.jhtml;jsessionid=CK0UKKNE0NKJCQSNDLSCKHA?articleID=213402554"]reported[/URL] earlier this week that the Dell E4200 and E4300 laptops are running both Linux and Windows on the same machine. Why both you ask? The Linux OS provides a quick boot for checking email and other "light" computing duties while the Windows side allows "heavier duty" … | |
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. | |
Hey guys is there a funtion in python that enables to output values to a bin files? Just like storing strings in .txt files, can we store hexadecimal values directly into .bin files? I am working using Python 2.7.3 | |
org 00h using 1 jump equ r1 jump1 equ r5 mov r0,#0a1H mov r2,#0ah mov a,#6h jump: sub r2,a jump1: inc r0 jz jump cjne a,#00h,jump1 end assembling e06.asm... e06.asm(8): error A8: ATTEMPT TO DEFINE AN ALREADY DEFINED LABEL e06.asm(8): error A9: SYNTAX ERROR e06.asm(9): error A8: ATTEMPT TO DEFINE … | |
how to use "**into**"?????? this is my example!!!!!! ......................................... add ax,bx into . . . . . . overflow:push ax push bx push cx push dx . . . pop dx pop cx pop bx pop ax iret .................................................... who has other examples of about "**into**"? i want to learn!!!!!! … | |
If I write an asembly program to a one CPU, will it also run on the other brand? What CPU is faster?Intel or amd (let's say both are 2Ghz processors. ) | |
I code this exercise in c++ with title: "count number of occurrences of a character in a string" who can help me? thanks very much My code in c++: #include "stdafx.h" #include <iostream> using namespace std; unsigned count_check(char str[],char a) { unsigned d=0,lenght=strlen(str); for(int i=0;i<lenght;i++) if(str[i]==a) d++; return d; } … | |
Howdy; I am still on my journey into the world of assembly, and feel that I am becoming more comfortable with it, however; there are somethings I am still struggling with. Below I have posted my code, and have inline comments with it. These comments represent my understanding of the … | |
1/count number of occurrences of a character in a string?(write by MIPS) thanks very much | |
Howdy; I am currently working on a program to review what I have learned so far, in the PCASM book written by Dr. Paul Carter. I have accomplished 3/4ths of my overall goal, however; my program doesn't seem to like me especially the division part of it. The goal of … | |
Howdy; I have been studying on my lonesome, in hopes of becoming more in touch with assembly, and feel that I have been doing pretty well so far. However, I do have a few questions, including: - What is the major/minor differences between a signed, and unsigned number? When do … | |
I am have been programming in C++ for a few years now. Now I would like to also learn assembly language. I have tried NASM, but I dont like it, it works better on linux and my main development platform is windows. I have also tried FASM, its better but … | |
Hello guys, I'm using MapViewOfFile to map a file and try to edit its data and save it on the file. The problem I have extra data to the file required to expand its size. So, how to append data to the end of memory mapped file using CreateFileMapping and … | |
Somebody help. This is for my special project and to be submitted on monday. It's 11:09pm (saturday) here. i have a problem with my codes. its about when you input a CAPITAL LETTER the output should be in lowercase and vice versa. and also my problem is i dont know … | |
Howdy Friends; I have just started learning assembly, and am currently working with NASM, in Linux. I am not creating anything close to advanced, yet because I would like to know if I am on the right path with what I am learning. The code that is posted below is … | |
It is about time we start building a Sticky in this forum listing some resources so the newbies will have an easier time finding the information they need. I will start with these valuable links: x86 Assembly Language FAQs Wikipedia: Assembly Language Wikipedia: List of assemblers Links at Webster MASM … | |
Hello, I only have a basic knowledge of ASM because every tutorial I have found (including Narue's) is based on using some kind of high level library or another. However when I look through disassemblies of pretty much any program I notice that all such library calls are gone. My … | |
Hey guys, I wrote a program that reads a file and then displays its 8, 16 and 32 bit checksum as well as the XOR values. I've managed to do it and it works fine under windows(using qtspim) but on centos(using mars) I get the following errors: Line 7 column … | |
I am not know When Facebook Lunch his first Smartphone? But one Blog Published news about that. They told: "Facebook is planning an Android phone, ready to start the brand social network, according to the report.' Please told me about this news. Thanks ![]() | |
hello guys,,,am facing a little problem around here.. I want to write a code in assembly language(tasm) which requests the user to enter the name of the file and then open that file...and count the number of words in it and display the results... | |
Hello guys, can someone show me how to add new section to PE header in masm32? | |
Hello guys, I have problem with reading or writing files in C++ and MASM32. The problem is when calling the ReadFile or WriteFile the program give an exception saying "Access violation at address 0000". This is the code in MASM32: LOCAL Kernel32:DWORD LOCAL CreateFileA:DWORD LOCAL GetFileSize:DWORD LOCAL ReadFile:DWORD LOCAL pBytesRead:DWORD … | |
I could not get c function calls to work inside of nasm so i wrote my own read integer procedure. Im sure its inefficient and could be greatly imporved but right now I'm interested in where the negative sign went. Any help is greatly apreiciated. ;---------------------------------------------------------; ;reads a 64 bit … | |
So ive been teaching myself x86 over the last couple days now im trying to call c functions and am getting segmentation faults. if someone could explain how to call them properly that would be great. here is my code: print integer is just he control string %d as i … | |
I'm writing a program in .asm which prompts the user to enter a sentence. I have no problems with this but one requirement of the program is to change the format of the sentence by replacing all the spaces (" ") with underscore characters ("_"). How do I go about … | |
Would this decryption decrypt this encryption? encryption: push eax and eax,0xAA not al mov edx,eax pop eax and eax,0x55 xor ecx,edx xor ecx,eax rol cl,1 rol cl,1 mov eax,ecx sub al,0x20 decryption: add al, 0x20 mov eax, ecx ror cl, 1 ror cl, 1 xor ecx, eax xor ecx, edx … | |
Dear all, in order to fulfill my report on how to improve the performance of non-recursive binary search in MIPS, I need the code for a non-recursive binary search in MIPS. please help me with providing either the code or any source i can utilize to aquire the code. big … | |
;Dmitriy Potemkin 816 Assignment 3 BR main retVal: .Equate 2 printMes:STRO msg1,d CHARO '\n',i STRO msg2,d CHARO '\n',i STRO msg3,d CHARO '\n',i STRO msg4,d CHARO '\n',i DECI retVal,s RET0 ;******************************************************************* second procedure str1: .Equate 0 rett2: .Equate 3 max2: .Equate 5 sent2: .Equate 7 retVal2: .Equate 9 secPro: SUBSP 1,i … | |
Hi I am fairly new at programming, I am working on a final project for my assembly language class where I am calculating college savings, this is the formula I believe I will end up using, fv= pv(1+(r/n))^nt, but I am in desperate need of help in writing that in … | |
please help me in my project how you can make menu in assembly ?? | |
pretty new to programming in assembly but my assignment is to write a GCD program but my program works sometimes and sometimes it doesn't work. if i put the smaller number first then the larger number i don't get the correct GCD but if i do the opposite i get … | |
Has anyone made some really cool (or not so cool) 512-byte programs in assembly? I used to hear about people taking part in competitions where they'd try and make, say, a bootloader (or a program like a calculator, for example) and pack-in as many features as they could, the only … | |
In Assembly there's not going to be much insight on linked lists, B trees, arrays, etc. In fact those don't even exist at the bit level. Sure, they help solve some problems from all the way up to your compiled language syntax, but such symbols don't exist in machine code, … | |
Hi all, I'm programming a shell code for stack buffer overflow vulnerabilities, I have learned about it and read alot of this vulnerability and finally I have the ability to exploit it and make the shells. This is my code: ;+-+-+-+-+[ FileName: shellcode.asm ]+-+-+-+-+-+ .386 .model flat, stdcall option casemap:none … | |
So, When I assemble this code, I get no errors. It flies through the build. However, when I go to execute this code, it does not display the window. I am unsure of why. I have tried invoking messageboxes at the start or WinMain, but it seems it's not getting … | |
We have this subject called Computer Oraganization... we are now using dos debug commands but the problem with my laptop is that when I type debug command...it will prompt 'debug' is not recognized as an internal or external command, operable program or batch file. The C:\Windows\system32 do not have a … |
The End.