2,889 Topics

Member Avatar for
Member Avatar for maria azhari

i need coding assembly ic 8051 for my project scrolling led. led clock and time for update one years...help me plz.... tq

Member Avatar for wildgoose
-1
46
Member Avatar for punchinello

Excuse me but isn't this program going to display "1" on the screen? Thank you very much! [CODE].8086 DATA SEGMENT CHAR DB 31H DATA ENDS STACK SEGMENT STACK STACK ENDS CODE SEGMENT ASSUME CS:CODE,DS:DATA,SS:STACK MOV AX,DATA MOV DS,AX MOV AX,STACK MOV SS,AX ;--------------------------------- START: MOV DL,CHAR MOV AH,2 INT 21H …

Member Avatar for NotNull
-1
93
Member Avatar for punchinello

:$Hi! Please excuse me if this is a stupid piece of programming code I wrote. I just started to learn how to program in x86 assmbly and apparently it's gonna be quite a while before I get the hang of it. Well with this program I want to convert the …

Member Avatar for punchinello
-1
161
Member Avatar for jingo1126

guys? im creating my own program..first im using tasm.. my problem is i have the code for cursor.. [code] ;set cursor location(dh,dl) mov dl, 16 ; column. mov dh, 16 ; row. mov ah, 02h int 10h ;symbol of cursor mov al, 'x' mov ah, 0eh int 10h [/code] my …

Member Avatar for jingo1126
-1
4K
Member Avatar for pokerstar

I am trying to convert this for loop in C++ to ASM: [CODE] for(x=y; (x>=y) && (array[x-z]>temp); x=x-z) { array[x] = array[x-z]; } [/CODE] This is what I have so far: [CODE] mov ax, y mov x, y for_loop: mov ax, x cmp ax, z jl exit_for_loop ........... .. Array …

Member Avatar for pokerstar
-1
177
Member Avatar for Alex_

Hey guys. I want to read from a file created by me from a specific position. But i don't know how to move the file cursor. [code=ptasm] TITLE ep1 .MODEL SMALL .STACK 10h .DATA text DB '1234567Start:7890.end',13,10 text_length equ $-text dir db 'D:\myfile.dat',00h buff db 17 dup('$') f_handle dw 1 …

Member Avatar for NotNull
-1
1K
Member Avatar for shopnobhumi

I need to find the IPC(instructions per cycle) for each processor, the clock rate for p2 that reduces its execution time to that of p1 and the numbers of instructions for p2 that reduces its execution time to that of p3. processor ____ clock rate__ no. inst._____time p1_____________2ghz____20*10^9 _____7s p2____________1.5 …

Member Avatar for wildgoose
0
76
Member Avatar for NotNull

Load a user generated character set, should work on computers equipped with VGA cards. Assembles with 16-bit NASM as an absolute binary image (.COM). [code] bits 16 org 100h jmp word drip0_start char_set: times 416 db 0 msg db '0o l0^d user char generated',0xd,0xa db 'bitmaps can also be used....',0xd,0xa,0x24 …

Member Avatar for NotNull
0
134
Member Avatar for shahab03

so here is what my program does Please enter a number: (lets say I enter 5 store in $01) Please enter a another number: lets say I enter 3 (store in $s02 next condition is beq $s01,$s02, end bne $s01,$s02, loop and loop needs to provide user upto five opportunites …

Member Avatar for shahab03
0
71
Member Avatar for shahab03

hi there.. wondering if someone can provide me a sample that takes a number from the console as user input and prompts the user to enter another number. if the second number matches the first one then prints something if not then let the user try for another 5 times.

Member Avatar for wildgoose
0
34
Member Avatar for rvaiksaar

Hello, sorry if this is a stupid one, I recently started learning assembly and I have read many different tutorials, most of them start with " cpu has 8 main purpose registers... " bla bla you all know that. Ok so cpu has a few registers for programs to use, …

Member Avatar for rvaiksaar
0
114
Member Avatar for mgyucht

I have been having trouble with assembling a program, and I would really appreciate any help. The program is as follows: .model small .stack .code start mov ah,2h mov dl,2ah int 21h mov ah,4ch int 21h end When I build it I get a "error a2008: Syntax error: start" error. …

Member Avatar for jingo1126
0
551
Member Avatar for jingo1126

ok i can inverse the code like 1234 to 4321..but when i applied jmp and cmp i dont know what goes wrong with my data.. code without loop [code] .model small .stack .data .code start: mov ah,1 int 21h push ax mov ah,1 int 21h push ax mov ah,1 int …

Member Avatar for mathematician
0
105
Member Avatar for dharen

help me pls i have a project its DEPRESSION TEST using Assembly Language i need to know how to create a new screen after entering a character and tally all the answers that user gives on the questions pls help me i dont know the codes to be used tnx …

Member Avatar for dharen
0
37
Member Avatar for maricel91

help me about this: A program that ask your name and display it. we're using msdos.. thank you..

Member Avatar for jingo1126
0
49
Member Avatar for JasonL220

when i use this function of my library on windows everything works perfectly, but when i tried to port the port to compile with gcc on linux, it compiles and links to the rest of the library fine but it cause my app to crash. i think i might be …

Member Avatar for wildgoose
0
91
Member Avatar for markfisher

Dear Programmers, Hi I wrote a simple asm program to output a char on STDOUT in windows (MS-DOS) Here is my code: ------------------------------------ .386 .MODEL FLAT .STACK 256 ;Reserve 256-Bytes .DATA char BYTE "a" .CODE _main: MOV AH, 02h ;Sub-function 02h -> Output STDOUT MOV DL, char ;Char to output …

Member Avatar for wildgoose
0
157
Member Avatar for eniwe

When a CALL instruction is executed, the address of the current instruction is pushed into the stack. Then, the execution makes an unconditional JMP to the address specified as the parameter of the call instruction. [CODE].code Test: call delta delta: pop ebp sub ebp,offset delta mov esi,[esp] and esi,0ffff0000h push …

Member Avatar for eniwe
0
106
Member Avatar for codeguru_2009

i've copied this code from net but this is not working. Only blank output. can anyone help. i'm new to assembly. [code][ORG 7C00h] ; This is where BIOS put me ; --------------------------------------------------------- ; Main program ; --------------------------------------------------------- mov si, msg ; Print message call putstr hang: jmp hang ; Hang! …

Member Avatar for NotNull
0
175
Member Avatar for jsuvrat

Hi All, I am working on the Nohau Emulator with a POD having 68HC11E9 controller in Expanded mode. It was working fine with my target board a couple of months back, but now a days I am facing a problem with it. When I do external memory mapping in the …

Member Avatar for Salem
0
273
Member Avatar for shopnobhumi

.txt .globl main main: # f= (g+h)-(i+j); li $s0,0 li $t1,0 li $t2,0 li $s1,4 li $s2,5 li $s3,6 li $s4,7 add $t1, $s1, $s2 # sum of s1,s2 is stored in t1 or temporary variable t1 contains g+h add $t2, $s3, $s4 # sum of s3,s4 is stored in …

Member Avatar for wildgoose
0
155
Member Avatar for Nathan Campos

Hello, I'm really starting in Assembly, but i want to know if it's possible to develop for ARM devices like those who run Windows CE, because i have an Jornada 720 and i want to develop to it, i'm already a Java developer, but Assembly will be another language that …

Member Avatar for jsuvrat
0
153
Member Avatar for Alexar93

Hi! I've started to write my kernel in assembly but I think its far too complicated! Instead I would like to try to write it in C/C++. I'm new to these languages but i've written alot in VB and C# so I don't think it's going to be too hard …

Member Avatar for Salem
0
205
Member Avatar for NotNull

I have the address of the first byte of an array, the address of the array +4 would get me the address of the fifth byte, the address of the array +0 would get me the address of the first byte. For example: [code] arr db 1,2,3,4,5 mov bx,offset arr …

Member Avatar for wildgoose
0
81
Member Avatar for oufa
Member Avatar for NotNull
0
73
Member Avatar for xenocide001

hi all i have some homework that i cant finish cuz i dont know how to print it the way my teacher wants it.. here's the thing *Print this in debugger [CODE] hello . . . 25 times[/CODE] in the right of the screen.... this is what i have so …

Member Avatar for xenocide001
0
215
Member Avatar for oufa

i am oufa from egypt i am making an assembly project of an elevator i want to display my result on 7 segment could any one help me

0
63
Member Avatar for NotNull

Some 16-bit stuff... A segment address is bit shifted to the left by four bits to form a 20-bit physical address and a 16-bit offset is added to the result to index into a segment. So 1234:0100 would create the physical address 12440 Is this correct???????????

Member Avatar for wildgoose
0
88
Member Avatar for x0s0z0

[code];Fail to add ← function,why? WINWIDTH=60 WINTOP=10 WINLEFT=10 WINBOTTOM=20 WINRIGHT=WINLEFT+WINWIDTH-1 COLOR=54H PAGEN=0 CTRL_C=03H CSEG SEGMENT ASSUME CS:CSEG START: MOV AL,PAGEN MOV AH,5 INT 10H ; MOV CH,WINTOP MOV CL,WINLEFT MOV DH,WINBOTTOM MOV DL,WINRIGHT MOV BH,COLOR MOV AL,0 MOV AH,6 INT 10H ; MOV BH,PAGEN MOV DH,WINTOP MOV DL,WINLEFT MOV AH,2 …

Member Avatar for wildgoose
0
116
Member Avatar for x0s0z0

DATA segment produ1 dw 4 dup(0) produ2 dw 4 dup(0) produ3 dw 4 dup(0) produ4 dw 3000h dup(0) produ5 dw 3000h dup(0) r=181 x=300 y=240 DATA ends code segment assume cs:code,ds:DATA [code]start: mov bx,505fh mov ax,4f02h int 10h mov ax,DATA mov ds,ax mov si,0 mov cx,x-r mov dx,y mov al,02 …

Member Avatar for wildgoose
0
280
Member Avatar for 9AnThRaX9

Hello guys... I was browsing the net for the whole day to find the 'PHASES OF COMPILATION ON COMPILERS AND INTERPRETERS' but i can't search any appropriate answer. maybe it's time to ask for your help guys... please help me on this. thank you very much and more power to …

Member Avatar for MosaicFuneral
0
43
Member Avatar for jhouns

compile using A86 assembler however you can adapt it for any other one easily... It just draws out a 3D like shape. It was annoying to get the angles right but suggestions on improvement to code is appreciated. :) Adequately commented so it is understandable not fully as it is …

Member Avatar for jhouns
0
2K
Member Avatar for s2am

hello, im new in assembly language and i definitely want to learn it. so i read some stuff about it and now i want to write some code by myself, but i dont know which software or whatever i have to use. im on a mac (10.4.11, intel), so i …

Member Avatar for wildgoose
0
123
Member Avatar for Nathan Campos

Hello, I'm learning Assembly and i want to know the tools that the other persons use to develop, things like: Nasm, emu8086, WinHex... All the things that you use that are related with Assembly and what the do. Only for improve my tools and my learning. Thanks, Nathan Paulino Campos

Member Avatar for NotNull
0
111
Member Avatar for xellos
Member Avatar for Nathan Campos

Hello, I'm developing an simple OS, as you can see in my previous posts, but now i have a file that is too big for the boot sector(510 bytes), then i want to split it in two files, one that will be in the boot sector of the floppy and …

Member Avatar for NotNull
0
134
Member Avatar for Nathan Campos

Hello, I'm trying to write my OS to an floppy disk, but when i try to boot up, Bochs says that i don't have any OS on that floppy, here is the command that i'm using to write: #1 Try: [code]C:\Assembly> DEBUG os.asm -w 100 0 0 1 -q[/code] #2 …

Member Avatar for NotNull
0
851
Member Avatar for xellos

whats wrong with my code? .model small .stack .data buffer db 10,?, 10 dup(' ') .code main proc mov dx, offset buffer mov ah, 0ah int 21h xor bx,bx mov bl, buffer[1] mov buffer[bx+2], '$' mov dx, offset buffer + 2 mov ah,09 int 21h ret mov ah,4ch int 21h …

Member Avatar for NotNull
0
538
Member Avatar for PirateTUX

If you've ever had the (un)fortunate experience of having to work closely with a lawyer, you know that their profession seems to have it's own language. In fact, there are actually courses in law school that teach future attourneys to speak this strange mish-mash of English, French, Latin, and Greek. …

0
75
Member Avatar for kc0arf

A couple of years ago, I thought I would never have seen an "Intel Inside" sticker on Apple hardware. Looking at the news today, I was surprised at the revelation that Intel Macintosh hardware can now run Win XP SP 2! Somebody please check if hell froze over. WOW. Go …

Member Avatar for shockwaveudk
0
298
Member Avatar for gsbr

First it is in RosAsm style. Sorry I am addicted to its simplicity of use. The Proc is called from Dialog initiation [CODE] [Counter:D$ 0] ; Call for the first ToolTip Call SetTTip D$hdlg, ; H Dialog Handle of Dialog or Window 1, ; Tool tip number ID 1, ; …

Member Avatar for gsbr
0
246
Member Avatar for bad_dreams99

This is a very simple program that uses text mode to display a boucing "ball." The ball is just a character that moves across the screen, erasing all in its path. It is coded to work like a screensaver, so the program ends when any key is hit. NOTE: I …

0
400
Member Avatar for Tight_Coder_Ex

I use GetTickCount in a lot of my applications, so I built this snippet to convert to hours minutes and seconds. Leading extraneous data is excluded from output.

0
214
Member Avatar for Tight_Coder_Ex

User can enter an ascii string of up to 48 characters consisting of 1's or 0's, with randomly interspersed whitespace. IE: [B]1011111001011110 [/B]will be evaulated equally to [B][1011][111....cc001cccx01 111hhhh0 [/B]Algorithm parses from right to left so will be truncated at 16 position Purpose is to give all those still programming …

0
438
Member Avatar for Dani

[LEFT]This is a program I wrote for my x86 assembly class which revolves a "roulette wheel" around. Wait about a minute and it will eventually slow down to a stop. It uses Irvine32.inc which came with the textbook.[/LEFT]

Member Avatar for holmes008
0
357
Member Avatar for Dani

This is a program I wrote for my x86 assembly class which bounces an ASCII ball across the screen. It uses Irvine32.inc which came with the textbook.

0
2K
Member Avatar for Narue

FASM can output an executable PE directly, but sometimes you want to output an object file for linking with modules in other languages. The following program can be used to link with the C library of the GCC compiler with the following commands: C:\>fasm hello.asm hello.obj C:\>gcc hello.obj -o hello.exe …

0
279
Member Avatar for Narue

Some languages are hard to get started in. FASM appears to be one of these languages because the documentation is not detailed enough for a beginner. That's a shame because FASM is (in my opinion) one of the better assemblers. The following snippet is a simple Hello, world! program which …

0
1K
Member Avatar for Tight_Coder_Ex

There are numerous calls to Win32 API that return detailed information as to failure via GetLastError (). I've devised a method by which to get the textual information corresponding to error and the address of the call that caused the violation. If GetLastError () returns null, then it can serve …

0
323
Member Avatar for VSBrown

A test program that will call the PROC findGCD, passing in the integer values input by the user and then it will display the results to the screen.

0
637

The End.