2,888 Topics

Member Avatar for
Member Avatar for ThatGuy2244

I'm trying to make some code that directly interfaces with the VGA card(in real mode), I know the ports(0x3c6, 0x3c7, 0x3c8, 0x3c9) I need to use to output data on the screen. My code is this: [CODE] mov ax, 0 out 0x3c8, ax ;plot pixel at location 0 mov ax, …

Member Avatar for ThatGuy2244
0
798
Member Avatar for azka

Hello, i have a noob question. Could you please answer me, what do this means? [CODE]call dword ptr [ecx+5Ch][/CODE] i can not get, what does this +5Ch (its s backslash "\"), but what it means in this calling? Thanks!

Member Avatar for azka
0
87
Member Avatar for Luke11

I program using masm to make 32 bit programs. I need help converting some C code to assembly. Could someone help me? Thanks.

Member Avatar for Ancient Dragon
0
63
Member Avatar for zahraT

hello every body code below make directory in an address that is define in data part. ; create c:\emu8086\vdrive\C\test1 mov dx,ah mov ah, 39h int 21h but i want to get address from user. i can do this with macros . anyone know this with intrrupts? best Regard

Member Avatar for Ancient Dragon
0
112
Member Avatar for natostanco

Usually to print on screen a integer of 2 numbers i divides it for 10 and then use int 21h with mov ah,2 to print the 2 results. However with integers with more than 2 numbers it starts getting complicated and the method i use becomes really too long . …

Member Avatar for untio
0
112
Member Avatar for guneky

Hello, I tried to convert below code, but I couldn't.. What is wrong? [code=c] void invert(unsigned char *image, int width, int height){ for(int i=0;i<width*height;i++) image[i]=255-image[i]; } [/code] [code=assembly] ---------------------ASM--------- invert PROC push ebp ; save ebp register mov ebp,esp ; get current stack pointer mov esi,[ebp+8] ; get first parameter …

Member Avatar for gracy zacharias
0
1K
Member Avatar for ThatGuy2244

I had tried to make a compare strings function in real mode assembly, but it didn't work, so I tried it another way and it did. It seems to me that both functions I wrote do the same thing yet one doesn't work. Can someone tell me why, the two …

Member Avatar for ThatGuy2244
0
188
Member Avatar for CJM1990

Hey, i have a quick coding question. im programming in in ARM Assembler. my problem is that i need to find out the number of data values in a memory location, eg [CODE] AREA Test, DATA, READWRITE data_values DCD -16,100,-456,7,-123,-42,126789,2349,-34,-2344,45,-45,-3345 END [/CODE] so how do i find out that there …

Member Avatar for lukus69er
0
32
Member Avatar for cloudspade

WHY SOME COMMANDS DONT WORK IN CMD LIKE "@" my program always have an error whenever i have this command!

Member Avatar for Ancient Dragon
0
82
Member Avatar for cloudspade

hi im new to assembly lang!im using cmd debug in doing program but some command didn't work!like @ and some other command can anyone help me!

0
63
Member Avatar for atticusr5

Hello all, So I am NEW to all this, and I have a quick question with some code of mine. When I open this code in PC SPIM I get the following error: spim: (parser) syntax error on line 18 move $a0, $t4 #move the number to print into $a0 …

0
62
Member Avatar for ThatGuy2244

I I'm trying to create an application in real mode that uses the flags to store the results of calculations and other stuff. I'm trying to do this to take up less memory. So can someone please give me some example code or tell me how to do this. I …

Member Avatar for ThatGuy2244
0
185
Member Avatar for ThatGuy2244

I can't get my pointers in assembly to work, I'm using nasm and trying to use pointers in real mode with 16-bit registers. Here is my code: [CODE] mov di, Pointer mov ah, 0x0e mov al, [di] int 0x10 Pointer: db "W" [/CODE] This code should print out the character …

Member Avatar for ThatGuy2244
0
873
Member Avatar for baileys

Title tell me .model small .stack 100h .data msg1 db 0Dh,0Ah, "TYPE A DECIMAL NUMBER >> $" msg2 db 0Dh,0Ah,0Dh,0Ah, " In BINARY >> $" buffer db 7,?, 5 dup (0), 0, 0 binary dw ? illegal db 10,13,'not valid, TRY AGAIN: ','$' ctr DB ? PROMPT_2 DB 0DH,0AH,0Dh,0Ah,' In …

0
52
Member Avatar for DinMan

I want to write a program changing the notation of all hexadecimal numbers found in an assembly source file from traditional (<decimal_digit><hex digits>h) to C-style (0x<hex_digits>). I dont understand how can i read the file and change the notation. I am new to assembly programming and any help would be …

0
41
Member Avatar for lelejau

Hello, I have this code: [code] .data xd db "jjjj",0 .code ; Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā«Ā« LibMain proc instance:DWORD,reason:DWORD,unused:DWORD .if reason == DLL_PROCESS_ATTACH push dword ptr ds:[ xd] call Teste mov eax, TRUE ; return TRUE so DLL will start .elseif reason == DLL_PROCESS_DETACH .elseif reason == DLL_THREAD_ATTACH .elseif reason == DLL_THREAD_DETACH .endif …

Member Avatar for GunnerInc
0
143
Member Avatar for Fabii23

An integer is loaded in from memory. ran through two loops to determine the tens place and the ones place. Integer is stored back to memory and displayed. Example #98 Tens place -->9 Ones place -->8 :)

0
403
Member Avatar for chamnab

hi all friend!! last week I downloaded one software name "winasm" . they said this program can write assembly but i don't know how to write in this program.Does everyone know ?? thank

Member Avatar for GunnerInc
0
51
Member Avatar for MashHamed

Hello I have to do a MIPS project that I have to divide a 64 bit int. How can I do this? Please Guide me. Thanks

0
45
Member Avatar for Emonk

Hi all, I use the code below, and it's my idea it will give me on my LCDisplay the letters "Camil" (and yes, that is my name) All the first subroutines i just copied form [url]http://home.iae.nl/users/pouweha/lcd/lcd2.shtml[/url] - it has to work. From label start i did make anything myself. I'm …

Member Avatar for alphahr
0
173
Member Avatar for emation

I want to code assembly,Code assembly is convert number to character for ASCII code. example. ======================================================= Input ASCII CODE (in hexadecimal) press Esc to end the program : 41 Out put character is : A =======================================================

Member Avatar for skaa
0
222
Member Avatar for slaufer

Hi. I'm hoping someone here is familiar with x86 optimization, because I'm stumped. I wrote two programs that find prime numbers in the same way, [URL="http://endlessbeta.org/code/prime.asm"]one in assembly[/URL] and [URL="http://endlessbeta.org/code/prime.c"]one in C[/URL]. It seems that no matter what I do to the assembly version, the C version is always faster …

Member Avatar for hahanottelling
0
104
Member Avatar for marooh

hi, i'm trying to write a program that changes the 23h interrupt with my own handler which is to display "bonjour"32000 time and when ctrl break is pushed a msg"do you want to exit the program? y/n" is displayed.if the user select y the program will exit else the "bonjour" …

Member Avatar for marooh
0
134
Member Avatar for chamnab

hi do everyone know which program i can write assembly ? (I'm using Window Premium 7 64 bit) thank for spending your time to answer this question

Member Avatar for Kieran Y5
0
88
Member Avatar for Jevilon

Hi! First of all I would like to apologize; I dont usually ask for favours but I have blocked with a Sparc exercise. [CODE]"Write a program in assembly language SPARC applying multiple string from the keyboard. The end of the sequence of strings is determined by a null string. The …

0
118
Member Avatar for blob84

Hi this is the fact procedure: [CODE]fact: addi $sp, $sp, -8 sw $ra, 4($sp) sw $a0, 0($sp) slti $t0, $a0, 1 beq $t0, $zero, L1 addi $v0, $zero, 1 addi $sp, $sp, 8 jr $ra L1: addi $a0, $a0, -1 jal fact lw $a0, 0($sp) lw $ra, 4($sp) addi $sp, …

0
90
Member Avatar for Kioulis

Hello! Could anybody help me to make this java code( or part) to assembly (mips 32)? I would apprecĪ¹ate any help! The java code is: [CODE]import java.io.*; class BinarySearch { final static int MAX=5; public static void main (String args[]) throws IOException { char [] a = new char [MAX]; …

1
38
Member Avatar for florisvd

Hello, The following exercise I have to make, but I've got no idea how to do it. Can anyone help me? Write a program in assembly in the ATmega32 AVR Studio which both following issue as a choice of the following commands worked out and resolved. Make sure there in …

Member Avatar for Kioulis
0
115
Member Avatar for RicardoE

Can you please give me, or point somewhere, to find some sample code in FASM I'm trying to do a very simple program asking for a password, if the pass is correct display a message, if not exit program. Thank you very much :)

0
169
Member Avatar for arshi9464

i know what registers are, i know a lot of things about registers. but my problem is: a register is able to store data/instructions. like a 16 bit register can store 16 bit instruction/data BUT HOW MUCH DATA/INSTRUCTIONS CAN IT STORE AT THE SAME TIME? like an accumulator is used …

Member Avatar for nezachem
0
96

The End.