3,896 Topics
![]() | |
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, … | |
In assembly I would[code=asm] ProcA enter 16, 0 call ProcB leave ret ProcB enter 16, 1 ... code leave ret[/code]Even if ProcA is in another file, so long as I know the order of the variables in ProcA they are visible to me in ProcB because [U][B]16 ,1[/B][/U] nests procedures … | |
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 … | |
I am a beginner in the programming world. I have just installed Visual C# express edition. I have been trying my hands on some applications but whenever I try to debug I get this message ('C\users\beryl\appdata\local\temporary projects\myproject\bin\debug\myproject.exe' is missing. please rebuild the project and retry or set the outputpath and … | |
hi all, Lets say I have a class library consisting of 5 to 6 classes,I want to have a NUnit fixture for this scenario.Will it be place dat in the same directory or as a seperate assembly? | |
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 … | |
Hi guys. I've been working on some assembly programs for school and I'm having a couple of minor issues that are putting my progress to a halt. My first question: how does one perform something similar to a scanf function in assembly? I just need to scan a single character … | |
Please take some time to read my questions. Thank you. My current C++ exercise project is a win32-console text-only MUD engine. (MUD = "Multi-User-Dungeon" referring to the game genre in which the player wanders around in a 'map' of 'rooms' and can interact with many 'items' and 'characters'. In the … | |
I would like to know what is wrong with this code: [code] [BITS 32] ; Windows XP SP2 32-bit section .text global _main _main: push Command mov eax, 0xAABBCCDD ; address of system() call eax Command: db "echo whatever" [/code] | |
Hey guys. I'm Phil. I'm a senior EE/ECE student at LSU in Baton Rouge. My hobbies include cooking, tennis, and spending time with my girlfriend. I'm eagerly awaiting the start of college football. I stumbled upon this forum after some frustrating problems with assembly language. | |
Hi, I recently started programming with inline assembly (I use Visual C++), but I have found a bug that I cannot solve. Why does it give an error? // C language unsigned char array[] = {1, 2, 3, 4, 5, 6, 7}; // Assembly __asm { XOR CL,CL MOV AL,array[0] … | |
This program was written to program a circut that was to be used in the controll of an game, it is made fore a big show in Norway. The job is mine and I cant get it to work properly. I have put the file as an attachment and was … | |
I've been looking around at various examples of Reflections and couldn't find any that go into detail about the scenario i need. Let me explain what my current situation is: Main Console App (passes down a string to Class A) -> Class A which sole purpose is to take the … | |
Hi.... I'm new here... I have Toshiba Qosmio F10. I have just dissambly my laptop then assembly it again... now I have a problem .... my laptop just shutdown automatically after certain time (araound 2 minutes)..., and before, I got an error #IDE 1 . I dont know what's actually … | |
first off this is my first post on this board, second i have knowledge of asm and debugging but by no means am i a guru(or the such). What i am trying to find is a way to track down the powerpc equivalent of certain x86 asm instruction(or a way … | |
[INLINECODE]#include<stdio.h> void print_message(void); void print_message(void) { printf("This is a bug\n"); } int main() { print_message(); }[/INLINECODE] I'm using VS 2005 SP1+SP for Vista on Vista buisness and as I wrote in Title when I have functions in my programs and I start debugging F10..F11, and debugger encounter a function instead … | |
Hi guys I need help debugging My program I'm not sure why it doesn't work I'm not THAT good at assembly so it might be a small bug. I wanted to post the code, But its a lot of code. Everything works fine until I need to input numbers I … | |
Hi, how can I use this assembler? I tried assembling a file through the terminal like this: "as Practice.asm". I got this message: "practice.asm:0:End-of-File not at end of a line practice.asm:6:End-of-File not at end of a line practice.asm:unknown:Partial line at end of file ignored" And an output file: "a.out", I … | |
![]() | Hi, I need to write a program that receives a 20 char string from the user and transforms lowercase to uppercase letter, but it should not affect any other character not included in the lowercase range (97-122, a-z). I wrote my program and the filters for the a-z configuration but … ![]() |
hello, i need to do a program in assembly with NASM that display an BMP image file at screen but i do not know how to do that, can some one help me? the program needs to have this statements: -it may ask for the image file name -the namos … | |
Hi, I am trying to write a program to convert an integer to a character. Below is my code. Can someone tell me what I am doing wrong? It is for the MIPS chip. thank you, Michael [code=assembly] # A test to print charactors from numbers. # Does not work … | |
![]() | Hello, i have a question of assemble using the video mode, when i run the program why only half of the screen is painted?,the whole screen should be painted, any help would be welcome please. this is the code: org 100h mov ah, 00 ; video mov al, 03 int … ![]() |
Henry Ford taught us that to simplify the manufacture of automobiles, that the best way to do so was to install the assembly line. That one change revolutionized the auto manufacturing industry permitting the industry to build cars at a cost whereas the average person could afford to buy one. … | |
Hello I'm a student. My teacher asked me to find a simple virus written in assembly and describe the code and what the virus do. Can someone help me? I couldn't find any virus and it's source code. Please help me or give me a clue. Thank you in advance. | |
Okie... So this is what i have [code] [ENABLE] 004dea6a: push [00] jmp 004DEA6f [DISABLE] ret [/code] can anyone help me figure out how to get this to return back to the original state before the jmp? I have tried many other things and still cant figure it out. I … | |
I have written a small c++ program and then output the instructions as assembly...but I have no clue what it means. The book I am using does not explain this very well. Can someone comment the code to tell me what is going on? I'd greatly appreciate it. Thanks [code] … | |
Hi, everyone. I have worked in IT field for about 1 year, before that my major was physics. So I feel I'm just a new guy in this field, and I hope you could help me:) Now, I work in a embedded C++ project on WINCE platform. I'm not very … | |
So I'm a young person who has just decided I want to persue a career in programing, (I think) while surfing through my usual video sites, i discovered a tuturial on how to "make yourown harmless virus" it was simply showing you how to make a "restart your computer" shortcut … | |
I have a project for which I have to implement parameter passing through stack between different protection levels. The information about the number of variables needed to be passed at the function must be given through DWORD Count of Call gate For this project I have to: A) Create 4 … | |
I have a stand-alone 2k machine that I loaded the IIS from the 2k cd. Basically I have a htlm program run which displays the exploded view of an assembly on the screen with hot spots. When you click on a part of the assembly it runs an ASP program … | |
I need some help using the MIPS ISA. Given a word I need to extract the four byte values that make up the word. For example, given .word 5 if I store the word in a register, $t1, I need to need perform some operation on this to get out … | |
Hi; please check my code i am sure that everything and every statemnt is correct but the output is not true. this code is to show what the array a and b contain also it show their dot product . [CODE] include irvine32.inc .data a byte 1,3,5,7,9 b byte 2,4,6,8,20 … | |
this is a code to make a calculator but it doesn't work i didn't find the error:@ | |
Is there a way to recognize when a key is pressed in 32-bit masm? I know you can use interrupts in 16 bit, but how can this be done using 32-bit, since 32-bit is protected by the OS. Thanks, Tyler S. Breton | |
i started learning assembly now and i have to convert a number (0,..,9999) to a word for homework. if anyone knows how , please lets show me. thanks |
The End.