3,896 Topics
![]() | |
Hello, I made a 2D game using XNA 3.1 in visual studio 2008 professional. In the game you can control a cannon and shoot cannonballs at ufo's. It worked when I had a Rectangle collision but when I followed a tutorial for per-pixel collision, and I got errors I have … | |
Here is what I need to do. I have a very small C program that takes user input and passes argv to a function written in GNU assembly language that will then count the number of characters in the string. The function seems to work fine when I enter a … | |
add, addi, lw, sw, li, la, syscall, move, jal, jr, bgt, j. Assume that: all registers are addressed by $register-name (like $s1; see your textbook for range of valid register names and numbers); the end of program is recognized by the end instruction, the program is loaded into memory at … | |
i'd like some help cause i'm new to assembly language i have this program in c and i have to convert it to assembly language int R[100]; char S[100,100]; int process(int rows) { int i; for (i=0;i<rows;i++) { tmp=strlen(&S[i])): R[i]=tmp; if (tmp==0) return i; } return i; } this function … | |
Hi, I'm really new to assembly language and trying to write an assembly program that includes some arithmetic and I would like to know how to do two things: 1- I want the input entered by the user to be between 0 and 9, meaning a digit not anything else. … | |
I'm using windows xp with a 32 bit processor. I would like to write a program which at the least: 1. observes data addresses of data on a FAT32 SDHC 4GB flash drive 2. makes an index of data location addresses and stores the index at a specified data address … | |
Hi guys, ran into a small problem, i can read & write anything i want to a text file as well as append to the end of the line but I cant seem to figure out how to edit a specific line. Lets say in the text file i have: … | |
Hello I have an windows form with two button, i have converted this windows form to an dll. The dll is here namespace projdll { public partial class abc : Form { public int i = 0; public abc() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { MessageBox.Show("BUTTON … | |
![]() | Hello, I'm having another problem with assembly. I'm writing a Fibonacci sequence in assembly and I think I got all my stuff set up, but after I try to convert from .m to .s using gm4, I'm getting this here: NONE:0: gm4: ERROR: EOF in argument list Can anyone tell … |
Hi ,I am trying to count all characters in entered text ,putch and putint are macroses for printing int and char What I am doing wrong Thanks [CODE] .386 .model Flat include Cs266.inc .data count DW 0FFH .code main: mov BX,count here: getch cmp EAX,-1 INC BX je exit putch … | |
Just started looking into visual c++ express 2010 today, no exp at all with this IDE anybody know how to remove these types of errors from project. [CODE]1>AXIMP : AxImp error : Could not load file or assembly 'Interop.MSHelpServices.1.0, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot … | |
I made an windows application using c# express edition 2010 and i use the SQL database as mdf file inside my soultion and the connection string mad automaticaly in the app.config as the following: [CODE]<add name="MainForm.Properties.Settings.FamilyHistoryConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\FamilyHistory.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" />[/CODE] then when i am trying to publish the … | |
Hello I have an dll which is added at runtime using assembly.loadfrom(). Now how to call a particular method within dll at runtime on button click .The dll name is trial.dll and the dll contains one method called demo() which just display a messagebox on call. How can i invoke … | |
Hi ,I am new in Assembly and I am trying to print the first element of array putint is macros include in Cs266 [CODE] .386 .model flat include Cs266.inc .data Arr DW 1,2,5,9,12 .code main: mov AX,[Arr] putint AX ret end [/CODE] | |
Hello. Im very new to assembly. Like, 2 weeks new. Im an IT student and I want to practice assembly in my very own laptop. I want to download assembly resources but Im not sure what. I know this exists in the assembly resources thread but Im really clueless. It … | |
Ok So im trying to understand flags.... when i set $eax = 0x80000000 and set $ecx = 0x90000000 I want to compare and jump for flags so cmp EAX, ECX j(o,s,z,c) I do not understand how comparing these two numbers get a carry flag but not an overflow flag. I … | |
I wrote an operating system in 16bit asm (NASM), and thought it was easy. Then I came up with the crazy idea that I could learn 32bit asm.. And quickly became disgusted. All of the 32bit tutorials out there TELL you to use C or a similar language; I want … | |
Write a whole game from machine code/assembly? | |
Please i want SIMX86 program , it's simulator for x86 processor | |
Hi I have a button which basically exports data into an excel sheet. When I run this in my local machine, the code works perfectly but if I upload it in my server, the moment I click the button, it just keeps on processing. Initially it showed up some com … | |
Msg 6505, Level 16, State 1, Procedure EmailAudit, Line 1 Could not find Type 'trgmail' in assembly 'ValidateMail'. though i already check that 'trgmail' is already program name still it show me in sql server that 'trgmail' could not find in this assembly | |
Hi,we have mirated database of an application from SQL 2000 to SQL 2005. Reports were being developed in SQL 2000 reporting services. So while migration we have converted into SQL 2005 -SSRS.It works fine. But previously they have used Report Viewer Control of 2000 reporting services. Now if I am … | |
problem You are to, given the data below, design an IA-32 assembly language program to find the max and min of the array in X and save them in A and B respectively. X sword 100,200,-100,-200,150,-150,300,250 A sword ? B sword ? what i have so far: 1. irvine32.inc 2. … | |
Hello, I am trying to compare two characters of different strings but it quits the loop. I know i am accessing the right chars caz i have tested it with print multiple times. [CODE].data mainNumPhrases: .word 4 mainPhrases: .word mainPhrase1 .word mainPhrase2 .word mainPhrase3 .word mainPhrase4 mainPhrase1: .asciiz "abcdefghijklmnopqrstuvwxyz" mainPhrase2: … | |
Hi everyone! I feel like I've come a long way in my "quest" of creating a 16-bit toy os, since I last posted in these forums. Currently, the problem is that my CPU encounters an error, trying to switch to protected mode, and therefore shuts down the computer. This is … | |
Hello everyone. I am wondering how to get started with ASM. I tried a few times to install things like radASM (and others) but I don't really know what they are all for. Can someone just tell me how to get started and about compilers/builders? Thanks. | |
I see a lot of people have been asking this question, some was because of the if postback check , but mine is different. i am using AjaxModalExtender to show my popup on the server side. this is my markup [code] <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestPage.aspx.cs" Inherits="PopTester.TestPage" %> <%@ Register … | |
Hi All, I have the following program to convert Lower case character to uppercase letters org $4000 Alph equ 26 26 Alphabets begin lea LC,A0 store lowercase to A0 lea UC,A1 store uppercase to A1 move.b #Alph,d1 sub.b #1,d1 loop move.b (A0)+,d0 convert LC to UC sub.b #32,d0 move.b d0,(A1)+ … | |
I am coming back with a load address error with the first line in main (la $a0, test_str). I have been trying to figure out why. I am probably thinking to hard. Any help would be appreciated. [CODE] .data pali0: .asciiz "Go deliver a dare, vile dog" pali1: .asciiz "Some … | |
![]() | Hello, I'm having a small problem with my program for assembly. I have to write an assembly language that finds the maximum of y = x^6 – 14x^2 - 56x for the range -4 ≤ x ≤ 6, by stepping one by one through the range. Here is my code … ![]() |
Is it possible to write direct machine language instructions to the processor and have them executed in some manner? | |
Hi, I wanna ask.. suppose I have an array and a constant called threshold in my data segments [CODE]array db 1,2,3,4,5,6 threshold equ 5 [/CODE] I want to compare my array elements with the constant, and only display/print the number which is less that the threshold, if there are none, … | |
Hey All, Just wanted to know how to correctly use the OUT instruction for the x86 instruction set I'd like to output some data on the serial port which for me is 3F8h IRQ4. So I set up a test program as follows: [CODE] .386 .model flat,stdcall .code main PROC … | |
I am asim, hi, i have uploaded my site first time and but unfortunately i got errors in web.config file that is as below: [CODE]<?xml version="1.0"?> <!-- For more information on how to configure your ASP.NET application, please visit http://go.microsoft.com/fwlink/?LinkId=169433 --> <configuration> <connectionStrings> <add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" … | |
Hi, I have a rather interesting question... I'm writing an uninstaller, and I need it to load itself into memory, delete associated files, preform cleanup actions, and finally exit, all without using the CMD prompt. How can I do this? | |
The code runs fine if the first input integer is the largest, but if the second or third are larger it crashes or stops. I used the error message to determine that the code jr $ra stops the program. If I run another program I made that has that same … | |
so what exactly is an instruction? 1.) is an opcode considered an instruction? 2.) is an operand also considered an instruction? 3.) is a combination of an opcode & operand makeup a legal "definition" of an instruction? | |
can someone add some comments here so i can understand the process of the codes im a beginner here at assembly language by the way im using tasm for assembly [CODE].model small .stack .data msg1 db 13,10,"Enter a string with dollar symbol as a break :$" msg2 db 13,10,"Modified string … | |
hi guys i am supposed to design a microprofessor as my university project please help me to program my device, i mean i need the assembly code for programing my device , if anyone knows about microprofessor's code , please let me know | |
I've run into a bit of a problem with my OS.. Displaying large amounts of information; like so- [CODE]mazemsg db 0x70,"Maze game: How to play--",0 db 0x74,"-Arrow keys for movement",0 db 0x7C,"-Move into the red crates to move them",0 db 0x7E,"-Push a crate onto yellow dots to clear both the … | |
I am writing this thread not to ask how to make an operating system, but to say how to make an operating system. There always seems to be new threads created asking how to make an operating system. [b]The simple answer[/b] There is no simple answer. Making an operating system … | |
Here is my code [code].section .data values: .int 0 array_end: .equ ARRAY_SIZE, array_end - values array_fmt: .asciz " %d" usort_str: .asciz "unsorted array:" sort_str: .asciz "sorted array:" newline: .asciz "\n" maxvalue: .int 1000 format: .asciz "%d" message: .asciz "Please enter a maximum size for the array to be sorted." output: … | |
can someone please explain why that is the answer to the question. for question 3, i thought it would be a) and c) thanks, 1 Circle which of the following (it could be any number of them) are flags that will be set (to 1) when 0x80 and 0x40 are … | |
My homework says: Write an assembly language program that, when given an integer n, will calculate the value of the expression (2n^2-1)2 + n^3. Your program is to get the value for n from ECX and is to leave the value of the expression in EAX. (Note: The name of … | |
im curious as to if i were to do inline assembly such as [code] __asm { mov eax,0 // more assembly here..... } [/code] does anyone know of how i can calculate how many bytes the assembly code above i produced will use up in my exe? im wanting to … | |
[CODE]# Fahrenheit to Celsius .data # Following are data prompt: .asciiz " \n Please input degrees in fahrenheit: " # prompt user for input result: .asciiz " Degrees in celsius is: " # display degrees in celsius bye: .asciiz " Program terminated " # display when program terminates .globl main … | |
I have tried to set the colors of the vga color palette here is my code: [CODE] mov ax, 0x13 int 0x10 mov ax, 0xa000 mov es, ax mov al, 2 mov bh, 63 mov bl, 0 mov ch, 0 call SetPalette mov si, 344 mov byte [es:si], 2 Hang: … | |
Hey frnds plz reply of mine questions.I want to just confirm my answers.Plz reply it by today only if poss.bz tom is my another interview [B]1)[/B] How to Delete Dynamically Allocated Array? a) delete a[] b)delete a[0] c) delete[] a d)delete [0] a [B]My answer a.Correct or not[/B] [B]2)[/B]Can we … | |
Hi ,I just started learning assembly ,and I have a question when we add unsigned 255 and 1 in 8 bit registry CF=1 and OF=1 right, and how do we realize if this numbers are sign or unsigned Thanks | |
I'm trying to code a VERY simple PE compiler/assembler that uses calls to the Win32 API, but I can't work out from the documentation what memory model a loaded PE "sees". It seems to be flat, but in that case how does the OS/processor handle near (16 bit) jmp/call instructions? … |
The End.