2,889 Topics
![]() | |
i need coding assembly ic 8051 for my project scrolling led. led clock and time for update one years...help me plz.... tq | |
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 … | |
:$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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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, … | |
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. … | |
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 … | |
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 … | |
help me about this: A program that ask your name and display it. we're using msdos.. thank you.. | |
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 … | |
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 … | |
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 … | |
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! … | |
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 … | |
.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 … | |
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 … | |
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 … | |
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 … | |
could any one tell me is ax bx 8 or 16 bits cuz i am gettin crazy | |
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 … | |
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 | |
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??????????? | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
can someone show me how to display the system time ? | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
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, ; … | |
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 … | |
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. | |
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 … | |
[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] | |
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. | |
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 … | |
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 … | |
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 … | |
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. |
The End.