Building a music player with assembly
Is it possible to build a music player in assembly (I'm thinking along the lines of NASM)? What are the obstacles one might face in the process of building one? ...
Is it possible to build a music player in assembly (I'm thinking along the lines of NASM)? What are the obstacles one might face in the process of building one? ...
Hi, I want to convert ASM file to C program. is there any tools available for this. My intention is to convert assembly program of PIC 16F877A program to C program... ...
jmp start ;============================== ; Draws a horiz and vert line ;============================== startaddr dw 0a000h ;start of video memory colour db 1 ;============================== start: mov ah,00 mov al,19 int 10h ;switch to 320x200 mode ;============================= horiz: mov es, startaddr ;put s...
I wrote a very short program that parses a "program" using python and converts it to assembler, allowing me to compile my little proramming language to an executable. You can read my blog for more information here http://spiceycurry.blogspot.com/2010/05/simple-compilable-programming-language.html my question is... Where can I find m...
I'm fed up with this. I've been trying to just get a grip on assembly for awhile, but I feel like I'm coding towards my compiler rather than a language. I've been using this tutorial, and so far it's giving me hell. I'm using NASM, which may be the problem, but I figured it was the most popular one. I'm simply trying to learn the most g...
hello, can somebody please explain what this program is doing? .= torg + 1000 main: mov pc, sp tst –(sp) mov #list1, -(sp) jsr pc, mystery mov r0, res1 tst (sp)+ mov #list2, -(sp) jsr pc, mystery mov r0, res2 tst (sp)+ halt mystery: mov...
I'm studying pdp-11 and assembly, I'm very interested, is it possible to find insertion sort on assembly for pdp-11, thanks in advance for everyone, if yes where? ...
Hello! I have to approximate execution time of PowerPC and x86 assembler code.I understand that I cannot compute exact it dependson many problems (current processor state - x86 processor dicides internal instructions in microinstructions, memory access time obtainig code from cache of from slower memory etc.). I found some information ...
I'd like to see all the asm produced by Visual Studio C++ to learn a bit about ASM, compilers, etc. I know with GCC, you can do it with the -S argument, but not in VS. How do I go about doing this? ...
In section 4.3 of Intel 64® and IA-32 Architectures Software Developer's Manual. Volume 1: Basic Architecture, it says: A near pointer is a 32-bit offset ... within a segment. Near pointers are used for all memory references in a flat memory model or for references in a segmented model where the identity of the segment being accessed...
UPDATE: After some additional reading, what I really wanted was guaranteed early binding (which should translated to an immediate call for non-virtual functions and non-PIC code), which can be done by passing a (member) function as a template parameter. The problem I had was that gcc < 4.5 and icc 11.1 can generate some funky instruction...
What does this instruction do? mov (%r11,%r12,1), %edx Thanks. ...
Hi everyone I'm working on a project and I need to compute something based on the rows and columns of an image. It's easy to take the bits of the rows of the image. However, to take the bits of each column I need to transpose the image so the columns become rows. I'm using a BMP picture as the input. How many rows X columns are in bmp...
can somebody please explain, I have a program on C, can I convert it to assembly? if yes, how? ...
Hello , i was wondering if there was anyway of combining two characters to form one character. For instance, i have the character 6 and 7 , i want to combine them and make the result 67 that is saved in a register, is there any solution to this problem ? //Thx in advance ...
how can I get assembly code from C program I used this recommendation and I use something like this -c -fmessage-length=0 -O2 -S in Eclipse, but I've got an error, thanks in advance for any help now I have this error atam.c:11: error: conflicting types for 'select' /usr/include/sys/select.h:112: error: previous declaration of 'selec...
hello, can somebody please explain is it possible to convert this snippet of the code to assembly of pdp11? movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movl -16(%rbp), %eax cltq leaq 0(,%rax,4), %rdi movq -8(%rbp), %r8 movl -12(%rbp), %eax cltq leaq 0(,%rax,4)...
How can I change architecture in Eclipse from x86 to pdp11, what flags do I need, and do I need adjust cross-compiler, thanks in advance ...
can I do something like this on Assembly bne jsr swap, if not how can I solve this problem from C, thanks in advance if(start!=pivot_index){ swap(board,start,pivot_index); } I was taught that I must write jsr and sub-routine but can I do something like this bne sub-routine ...
I wrote swap on assembly, but I'm not sure that my code is right, this is the code swap: mov r1, -(sp) mov (sp) r1 mov 2(sp) (sp) mov r1 2(sp) mov (sp)+, r1 rts pc swap receives pointer from stack ...