Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #2K
~7K People Reached
Favorite Forums
Favorite Tags
Member Avatar for davibq

Hi, im trying to print a "$". I tried using: msj db "Hola", 36 msj db "Hola \$", '$' msj db "Hola \\$", '$' But none of them worked.. Help please

Member Avatar for mathematician
0
154
Member Avatar for brando|away

im using fasm (flat assembler 1.68), and im trying to output a string with int21h/ah=09h [code] jmp main msg db "hello world$" main: mov dx, msg mov ah, 09 int 21h [/code] this code outputs "hello world", but it outputs some control characters before it ([SOME WEIRD CONTROL CHARACTERS]hello world) …

Member Avatar for davibq
0
3K
Member Avatar for s_jmp
Re: ORG

i was wondering what exactly ORG instruction do? i know it sets where the program loads in memory,but how,when you disassemble a binary assembly file you dont see such a thing as org instruction,but when you run the binary file it gets loaded in that address you mentioned in front …

Member Avatar for dan63043
0
85
Member Avatar for johndoe444

Hi, This is the code fragment: [CODE] #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> int main() { int* bugs_bunny; bugs_bunny = (int*)malloc(3*sizeof(int)); memset(bugs_bunny, 5, 3*sizeof(int)); printf("bugs_bunny[0] %d\n",bugs_bunny[0]); bugs_bunny[0] = 17; printf("bugs_bunny[0] %d\n",bugs_bunny[0]); return (1); }[/CODE] The outcome is: [CODE]bugs_bunny[0] 84215045 bugs_bunny[0] 17 [/CODE] Why is the value printed for …

Member Avatar for dan63043
0
99
Member Avatar for Soileau

I am trying to write a function to add two arrays. The catch is that the arrays have to parts of a structure. So here is what I have so far: [CODE]#include <stdio.h> struct poly { array1[]; array2[]; length; }; void polyadd(int array1[],int array2[],int length) { int i; struct poly …

Member Avatar for dan63043
0
123
Member Avatar for idlackage

I'm supposed to get a 4-digit number from the user, convert it to binary (and hex), then print it out. I have absolutely no idea where to start. I know the algorithm; taking the number, diving it by 2, repeat until the number reaches 0 and the remainders of everything …

Member Avatar for dan63043
0
169
Member Avatar for Soileau

[CODE]#include <stdio.h> struct poly { int len; int arr[]; char *name; }; int main() { int i; struct poly p; p.len = 45; p.arr[3] = {1,1,1}; p.name = "Josh"; printf("%d",p.len); for(i = 0; p.arr[i] != NULL ; i++) printf("%d",p.arr[i]); printf("%s",p.name); return 0; } [/CODE] I tried to make a simple …

Member Avatar for Mathura
1
163
Member Avatar for Alex_

Hey guys. I am trying to print different messages in dependency of what char you press. In my case i use, F1,F2,F3, escape. The problem is that the first message is printed again after a char input is read, which it shouldn't! This is my code, please tell me where …

Member Avatar for Alex_
0
102
Member Avatar for shakunni

Hey, I needed to delete a file created by a child process and our prof suggested that I use the system() command to do so. I 'manned' system but cant find anything useful on how to use it to delete an opened file. Can anyone suggest as to how this …

Member Avatar for marco93
0
90
Member Avatar for shakunni

As part of my program, I have defined and initialized a structure. But when I compile it, gcc gives me the following error on all the initialization " initializer element is not constant". Anyone know why this is the case? [code] struct RECORD { char* username; char* password; char* type; …

Member Avatar for shakunni
0
124
Member Avatar for bees1

This is an example program that I am studying so that i can make my own mixed mode assembly/C program. I am having trouble understanding on the assembly code, why I have to push SI twice at different times and only pop it out once. Also why push and pop …

Member Avatar for mathematician
0
150
Member Avatar for RayvenHawk

To be upfront and all, this is indeed a homework assignment. But I'm not looking for anyone to write the code I need just help me with a few functions I'm needing to use (the book is VERY vague on how to use these instructions). Assignment is open an encrypted …

Member Avatar for dan63043
0
135
Member Avatar for Koala269

Write a program in Assembly Language to find the maximum number and the minimum number from an array of ten positive numbers. Store the minimum number in AX and maximum number in DX. [Hint: Use the conditional jumps] PLEASE HELP ME!

Member Avatar for dan63043
0
89
Member Avatar for wangatang126

hi im trying to write a C program that produces an array like this 1,2,4,8,16... Basically i produce an array with with the power of 2 starting at 0 and going up to n. Here is my current code: However the array dosent show. What is the problem? # include …

Member Avatar for neithan
0
153
Member Avatar for thebluestar

here is my code [CODE=C] #include<stdio.h> #include<conio.h> #include<string.h> int main() { char A1[100], A2[100],c[100]; int n1,n2,i,j; printf("Enter string A1:\n"); gets(A1); printf("Enter string A2:\n"); gets(A2); n1=strlen(A1); printf("%d ",n1); n2=strlen(A2); printf("%d ",n2); char *p1=A1, *p2=A2, *p; p=(char*)malloc((n1+n2)*sizeof(char)); for(i=0;i<n1; i++) { *(p+i) = *(p1+i); } for(i=0; i<n2; i++) { *(p+n1+i)=*(p2+i); } int k2=strlen(p); …

Member Avatar for thebluestar
0
200
Member Avatar for NotNull

80X86 Speeding up word memory access. When the address of the first byte of a word lies at an odd address the processor must make two memory fetches for each byte of the word. But if the address of the first byte of the word lies at an even address …

Member Avatar for Evenbit
0
151
Member Avatar for ylchen

Hi all, Here's the problem I have. clock() call returns 0 no matter when I call it.... Code: [CODE] #include <time.h> #include <stdio.h> #include <math.h> int main() { volatile double n, i, x; clock_t time1, time2, time3; int j; // while (time1 < 1) time1 = clock(); for (i = …

Member Avatar for ylchen
0
88
Member Avatar for jupiterrise

Howdy, I have an assignment which requires that I get user input for 3 different variables, each in it's own function. These three functions are called by another function, which is called by main to begin with. Each of these inputs have a range that the input must be in. …

Member Avatar for dan63043
0
150
Member Avatar for deostroll

Hi. I am trying to print a single digit decimal number on to the screen. So far I've come out with this code. [ICODE] mov ax, 3 var db '$' mov bx, offset var add ax, 30h mov [bx], ax add bx, 1 mov byte ptr [bx], '$' mov ah, …

Member Avatar for wildgoose
0
2K
Member Avatar for abmeg

I am new to this site and i desperately need help.... i am trying to write an assembly language programm for MTS-86C 8086 trainer kit. i received an error "file cannot be converted " when i try to change it to hex format by using the command "V [file name]". …

Member Avatar for dan63043
0
74
Member Avatar for knooper

Hey, I'm new on this forum.. so i have some newbie questions to ask... I just would like to know what kind of processors are the dual core, core 2 duo and quad ones... i mean.. all the books that i've been reading so far are only treating about x86 …

Member Avatar for dan63043
0
101
Member Avatar for sgk26p10p07

Now i have been able to create the gdt's and when i change to pmode, will a short JMP flush the instruciton prefetch queue? here is a sample of my code and the gdt and gdtr content, [code] mov ax,07c00h mov ds,ax lgdt [ds:descr] ;switch to pmode by setting bit …

Member Avatar for koyi
0
169