2,889 Topics
![]() | |
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 … | |
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 ======================================================= | |
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 … | |
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" … | |
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 | |
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 … | |
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, … | |
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]; … | |
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 … | |
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 :) | |
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 … | |
i was unable to attend my classes due to a sickness(chickenpox) and my prof gave us a activity. he gave me an additional 1 week to pass it. but the problem is i don't know where to start @_@ the program that he ask us to make is: a program … | |
8086 Assembler ...I need the code for the following problems to do a few things.....try and include inline comments so i could understand them better... that could help me out.. PLEASE!..Thanks 1. Count the number of bits, in the double word that starts at memory location DS:1234h, that are 1. … | |
Hello, I have observed that when generating assembly code from simple C programs using GCC, the stack is initialized as follows: [CODE]pushl %ebp movl %esp, %ebp andl $-16, %esp [/CODE] my question concerns the last instruction where -16 is anded with the stack pointer. Am I correct in assuming that … | |
Hi I am new to assembler programming and am trying to get a simple program up and running on a PIC12F675 using a PICKIT2 I have wired up the circuit using pins 1-5 on the PICKIT2 programmer according to this diagram: PIN1 MCLR to PIC PIN4 PIN2 VDD to PIC … | |
Hi! I'm trying to write a program that converts an inputted decimal number into its hex equivalent. Here is the source code along with the .h files: [code] .286 .model small datas SEGMENT byte PUBLIC 'data' newl DB 10,13,'$' msg_hex DB "Hexa: $" msg_zec DB "Dec : $" tabela DB … | |
Hello, I am learning ia-32 assembly. I have observed that when creating an object file using gcc from the simple c program: [CODE]main () { char buf[256]; write(1, buf, 256); } [/CODE] it generates the following instruction for the write: (using the data on top of the stack for the … | |
Hello all, i am new here and this is my first post. I am a n00b in this case, and really don't know how to do it. so it would be great if u kindly show me the right way to do it. For instance the following instructions provides wrong … | |
Hello, Is there a reference anywhere that I can find out the number of cycles each instruction takes for ia-32 processors? I do not find this information in the docs, neither has much googling come up with anything. Thanks, Allasso | |
In the name of God... ------------- Hi every one. I Have to Files : Main.asm Procs.asm ------------------------------- In Main.asm I have written: [CODE]extrn INCHAR:Far,OUTCHAR:Far[/CODE] And in Procs.asm I have written: [CODE]public INCHAR:Far,OUTCHAR:Far MyProcs Segment Assume CS:MyProcs[/CODE] ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; I am sure that there is No syntax Error in both source files. … | |
[CODE] BITS 16 start: mov ax, 07C0h ; Set up 4K stack space after this bootloader add ax, 288 ; (4096 + 512) / 16 bytes per paragraph mov ss, ax mov sp, 4096 mov ax, 07C0h ; Set data segment to where we're loaded mov ds, ax mov si, … | |
I would like to know, because I noticed how slow it can be when called over and over. How would I go about doing [CODE]xor ah,ah int 0x16[/CODE] Without the interrupt? [URL="http://www.youtube.com/watch?v=ZKFY0OivbwE"]Here's a link to my video.. can see small delays keys are pressed quickly or held in near the … | |
Hello, im a bit confused about ASM, i just have a code, i want to add inside it some new instruction, but there isnt enough space for it.... how can i jump to the end of the app and execute it and jump back? is it possible? i got: [CODE]000001: … | |
Hi folks, I just want to be certain on a few things before I continue developing my software (using NASM). I know it seems a bit strange to finally understand addressing AFTER I've already developed a bootstrap loader, but that's the way it's happened!!! :$ I'm currently working in 16-bit … | |
Hello i am trying to mask the interrupt for the system timer in my pc, using the 21H adress (Interrupt Mask Register) as adress, and sending the OCW1. However, on none of the computers i ve tried it did work (AMD K6, Pentium 1, AMD Athlon 1400), although they are … | |
hi , Code calculator in error, please help resolve this error. I compile code calculator emu8086 I'll error on line 71. The second question: this calculator in 10 base worked. How can the numbers in binary form as the input received and as output . to download emu8086 http://www.emu8086.com tnx … | |
Hi, I am looking to find 3 and 5 digit characters convert into hex byte or word. For example 69 string represents 69 decimal and 45 hex. Then '6' = 36h and '9'= 39h. 43690 = AAAA example. I need done it in Freescale (motorola) assembly for my communication machine … | |
Hi A calculator that I wanted to assembly language into binary numbers (hexadecimal) as the input received. This sum calculator "+" multiplication "*" into "/"and subtraction "-" to do. I also need the program source. I'm grateful too to download source put Thank you very much | |
Hello all, I am writing a WPF application and used pages for navigation, The thing I want to know is that , [B] [COLOR="Red"][COLOR="red"]How can I get the Relative Uri`s of pages from the assembly dynamically[/COLOR][/COLOR][/B]. I don`t know what to do with this. I know how to get a … | |
If you are an operating system developer and using bochs as your simulator, you will love it. [URL="http://code.google.com/p/peter-bochs/"]http://code.google.com/p/peter-bochs/[/URL] | |
Hello, I have broadened my question posted yesterday. I would like to know how to approach writing system functions such as open, write, read, etc, without using syscall. I am using GCC. eg, I can call these functions using c, yet I understand that the compiler uses functions from a … | |
C-programming --> Assembly code I have been busting my *** with this, its very simple for someone who has experience they likely wouldnt even bother coding it out. I'm posting my code.. [CODE]#include <stdio.h> int main(void) { int led[4] = {0}; int ledSwitch[3] = {0}; int value = 0; while(value … | |
In the name of God . Hi every one . I have started to learn x86 assembly . I am going to define[COLOR="Green"] array of 70000 bytes[/COLOR] . Which it gives me failure by using command below : [CODE]arr db 70000 dup(0)[/CODE] ------------------------------- ASSEMBLER :< MASM > OS :Windows ---------------------------- … | |
Hello, I have been trying to learn assembly code for PPC on a Mac OS 10.5. I have wanted to see how, when compiling a c program, GCC uses libraries on the Mac to insert instructions to perform functions such as malloc(), write() and printf() in a way that is … | |
I'm a newbie in assembly Google search was not helping much can some1 tell me how to write %2 in assembly? ps. there might be more question coming up since I'm trying to finish my HW | |
An instance of pivot computation: Kindly give me your advice, please. And now, let me hear more about the problem of asm expert. Deviation_ratio PROC USES eax ebx ecx ; assumed that GENERATES deviation ratio VALUES and STORES in an ARRAY. ; RECEIVES: ESI POINTS to the ARRAY, ECX = … | |
can anyone tel me if doing some games in tasm assembler possible? if yes can someone give some tutorials on how.. and any idea will be much appreciated to start doing some | |
Please help on creating my own operating system ............. I try too much to search on google but I did not get any help for me.......... I hope some good enough too help.... I have knowledge about c/c++. Thanks. | |
Hey, I have a very basic question regarding the stack in x86 assembly. If Iām correct the main operations on the stack are push and pop (I know there are others). Next to this the stack will grow (keep the location) when the program goes to a subroutine (call) and … | |
In the name of God. hi everyone . I am going to code a program which get chars and print '*' character instead . ----------------- Here is Code : [B][I][COLOR="Red"]Now the problem is here : How can I Show the typed password ?[/COLOR][/I][/B] [CODE] ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;Purpose : Reads a String … | |
In the name of God Hi . I have wrote an assembly source code which draw lines . Put when I compile it to an exe file , the exe file gives me an error : The System Doesn't support fullscreen mode . My OS : Windows Seven 32 Bit … | |
PLEASE somebody help me I have QUESTIONS about pep/8 and 4 hours left to figure it out 1. in C++, global variable CHAR word[32] = "Backward"; is common but how do i initialize it in pep/8 ?? I need to write a simple program to flip it backward using stack … | |
output of asm <--- the output should be clear("no other words") and only menu,password can be seen before typing the password menu password:__________ <----- when typing the password it should be in asterisk "access denied"/granted <---- it will appear if the password is wrong or right codes that i create … | |
Hi! I'm wondering how to perform: "To read and write call interrupts using instruction int (e.g. int 10h)." (in nasm x86) for example: [CODE] bits 32 extern _printf, _scanf global _main section .data message db "Hello!", 10, 0 section .text _main: pushad push dword message call _printf <--- how to? … | |
Hello, im tying to complete a project here. but before i begin, i need to finish some basic problems. i just want to make sure i have this correct before i continue. 1. Declare an array named 'array1' consisting of the four elements {1, 2, 3, 4}, each as 2 … | |
Hello, i have problem at address: 0x0040E0D6 mov eax,dword ptr [ecx] the solution would be to place an instruction to check if ecx is 0 and finishing this function, but how to do this? Thx! | |
I need to make an OS For my school baisically it is for children's i am a 10 year old boy the poster of this question is my uncle i have 1 year of experience in doing C++ Regards Hayzam, | |
I am having trouble with our assignment at microcontroller. We need to make a hardware using pic16f84a that enables a 3x4 keypad to enter 3 digits,that can be stored and retrieve if you want, then those digits will be displayed in 3 7segment display. I really need help for this. … | |
i need help with, what i believe is complicated but probably isnt, on this following problem. i need to write a sequence of instructions that will do: variable5= -((variable1 + variable2) - variable3) + (variable2 - variable 4). thank you in advance. | |
Q1: if I want to make this [B]char word[32] = "Backward"[/B] to be global how do i initialize the "Backward"? by doing LDX and STX?? Q2: in a switch statement in C++, it is often to see [B]case 0: case 1: cout<<"something"; break;[/B] how do u make this in assembly … |
The End.