2,879 Topics
| |
Hello all, I am trying to load a 32bit data (word) from the PortB of a BRAM to a GPR (general purpose register) of the PowerPC. Address Map for Processor ppc405_0 (0b0000010000-0b0000010011) ppc405_0 (0b0000100000-0b0000100011) ppc405_0 (0xa0008000-0xa000ffff) docm_cntlr docm (0xffff8000-0xffffffff) iocm_cntlr iocm i am using the LWZ command like LWZ r1, … | |
I'm wondering how I would be able to tell if an integer is even or odd, I know that if the least significant bit is 1 then it is odd but I don't know how to tell if the integer has this bit as a 1 or a 0. | |
Hi guys! im having a problem with an exercise and i can't find the solution. the program have to sub the contents of the second array from the first and mov the result to the third. This is what i did so far. [code=assembly]TITLE ARITHMETIC2 DOSSEG .MODEL SMALL .STACK 100h … | |
hi,,im so new in this environment,,and im having a hard time,, wuold you mind giving me some example of c++ codes with corresponding assmbly language codes in tasm,,thanks | |
Hi, I am currently porting 64 bit application with C and Assembly code (x86-64) from Linux to windows. I am using Microsoft C-Compiler 2005 and Yasm for compiling C and assembly code respectively. I have modified the assembly files as per the 64-bit ABI specification for windows and i do … | |
The addres stored in ebx is the addres of the system function in the msvcrt.dll library. But this code doesnt work, when i try debbuging it, at the call it says that the addres is unreadable. What is wrong? Sorry for my english and also for my question if its … | |
alright... So I want to learn assembly, and i got a few tutorials. I noticed that there were different interrupts. I went online and searched for a list of them, and i found Ralph Brown's interrupt list....My question(s) is/are, Is it true there is over 120,000 different interrupt commands? How … | |
first of all, i am using windows xp, and i am using nasm to assemble my code, and djgpp to compile it with driver.c what i basically want to do is do a chat thing using serial ports, pretty much like Choink23 is trying to do in another thread. here's … | |
I want to make a proc which count random hunderts of time...Example, a want my proc to wait about 80 hounderts of secend...I write next proc but it doesn't work...If somebody know where i'm wrong, can you help me...thanks.here is the proc : STOP PROC NEAR PUSHF PUSH AX PUSH … | |
Hi, I don't quite understand this subject of Assembly. I was interested in knowing what they were used for and how I can use them, explained as simply as possible. I'm reading from this tutorial: [URL="http://maven.smith.edu/~thiebaut/ArtOfAssembly/CH05/CH05-2.html#HEADING2-1"]http://maven.smith.edu/~thiebaut/ArtOfAssembly/CH05/CH05-2.html#HEADING2-1[/URL] Thanks. | |
[code] org 100h ; set location counter to 100h .model small .stack 200 .data crlf db 0dh,0ah,'$' prompt1 db 'enter the first positive integer: ','$' prompt2 db 'enter the second positive integer: ','$' prompt3 db 'The sum of two numbers is: ','$' num1 db ? num2 db ? res1 db … | |
Hi, I just started learning assembly using this website: [URL="http://maven.smith.edu/~thiebaut/ArtOfAssembly/artofasm.html"]http://maven.smith.edu/~thiebaut/ArtOfAssembly/artofasm.html[/URL] I am currently at chapter 3.3.7, and am confused about the concept of opcodes. What is their purpose? Thanks, any help is appreciated greatly. | |
hello, I'm very very new at learning programming (actually this is just a hobby, I'm not a student) and want to start learning with assembly. I bougt a book about assembly and try to understand it but I couldn't understand any word about it. :( My book isn't including any … | |
The values of eflags are changed after an arithmetic instruction. What do they contain after executing a nonarithmetic instruction such as MOV? What if there was an arithmetic operation in a nonarithmetic instruction such as [code]MOV DX,[BX+0001][/code] I need clarification on this since I believe that EFLAGS can't be empty. | |
Okay, I downloaded Masm32 to my computer, and I found a (seemingly) good simple tutorial online to get me started before I buy a book. But the tutorial said that here is a code for your first program: [code=assembly].model small .stack .data message db "Hello world, I'm learning Assembly !!!", … | |
Hello everyone! Not so long ago I decided to learn assembly language. I have grasped the basics of it more or less, but there is one problem that I cannot solve (and find any help about). I wrote a program to output the sum of two integers that are entered … | |
I'm writing a compiler, but if I want it to be on more than one platform, it seems I have to learn every assembly language for the different platforms. I've seen a number of languages which try to be 'portable assembly languages' such as Linolium and C--, but they all … | |
Hi, I started reading a book named "Programming from the ground up" but realized it's for Linux, so I installed Ubuntu in my Mac with Qemu to test my code there. It works perfectly. But now I want to program with the Intel syntax, with NASM, in my Mac. So … | |
[code=assembly]TITLE charwordcount DOSSEG .MODEL SMALL .STACK 100h .DATA msg1 db "Enter a sentence please: $" msg2 db " Do you want to try again (Y/N)? $" msg3 db "Character count = $" msg4 db "Word count = $" sentence db 84 dup("$") try db 5 dup("$") crlf db 13, 10, … | |
hi everyone,.Im new in Assembly language.I ask if you can teach me on how to convert the following c++ program to tasm. I hope you could help me with these. [code=cplusplus] #include <iostream.h> #include <conio.h> int main() { clrscr(); int n; cout<<"enter number: "; cin>>n; if(n==50) cout<<"n is 50"; else … | |
Sorry guys im kinda new in this language and i have a small problem here. im supposed to write a code that uses addition and subtraction to clear and set a carry flag it must then display the dumpregs and i think this is how it should look, well not … | |
I am reading "Assembly Language step-by-step" 2nd Ed. by Jeff Duntemann, using nasm and alink. Full source code is a bottom. When I linked this code I got this error "Warning - no stack". The program ran fine. I decided to add the following code, just to see what would … | |
I have code that looks like: mov dl, 05 mov dh, 05 I can combine these 2 commands into: mov dx, 0505H What I don't understand is why is it necessary for '0505' to be in hex. If I make the command: mov dx, 0505 it does not work right. … | |
I'll show the code 2 different ways. The screen SHOULD scroll in both cases. Any ideas on whats going on here? Mike In this case the program works great. The start procedure is on top. [code=assembly] [BITS 16] [ORG 0x0100] [SECTION .text] Start: mov al, 3 call scrollXLines mov ax, … | |
Hi. This piece of code is suppose to scroll the whole screen 3 lines up. The clearScreen procedure is never called, yet, if I leave it in the code, the program clears the screen. If I comment it out, the program scrolls the screen 3 lines up just like it … | |
Hello guys ! I've just started to learn Assembler and I needed an assembler. My choice was nasm, because of the same syntax as masm and tasm (at least that's what i heard ^^) I used apt-get to install nasm, everything ok until here. I wrote my first script (copied … | |
[B]I have been having problems on how can I revise or if someone could me a code on emu8086 on how to convert uppercase string into lowercase[/B]..the code below converts lowercase into uppercase..how can i revise it? Thanks in advance org 100h .model small .stack 200 .data msg db 'enter … | |
Hi... In MS-DOS, how could I hide the text cursor NOT the mouse cursor?.. Thanks.. | |
i have programmed in assembly for 3 years and have used a86.COM compiler. i like programming DOS programs. i can see that the assembly code has a little different structure that you all are talking about here. i know it's bacause of the compiler. So is it good compiler that … | |
Could anyone help me to convert this code to 8086 assembly language. Aku wt pki MASM32 ([url]www.masm32.com[/url]) ; Build this with the "Project" menu using ; "Console Assemble & Link" .486 ; create 32 bit code .model flat, stdcall ; 32 bit memory model option casemap :none ; case sensitive … |
The End.