2,888 Topics

Member Avatar for
Member Avatar for nevin6969

In python how to write a program which takes a number of days from now - 100 days, and find in which month that future day is.

Member Avatar for amazingadmin
0
223
Member Avatar for nana_7

; Data section .data extern printMSG extern exitNormal extern printRAX extern printRBX extern printRCX extern printRDX extern getByteArray extern printByteArray extern printEndl startPrompt db "Welcome to the amazing dice game, press enter to start " startPromptLen dq 54 rerollPrompt db "Enter any numbers you want to keep " rerollPromptLen dq …

0
31
Member Avatar for patrickdegaule

to input a number and store it in x y equal to x-z y>0 , display the value of y and x using org 300 with x , dec 0 y , dec 0 z , dec 5

Member Avatar for rproffitt
0
73
Member Avatar for mr.matrix251
Member Avatar for rproffitt
0
122
Member Avatar for kww228

I am doing a project that must convert each string in X to an integer and save it in the corresponding location in Y. A dollar sign is used to mark the end of a string. I have 90% of the code, but it only works for the first string …

Member Avatar for hamzah_3
0
12K
Member Avatar for taylan_1

It converts only one number into binary. When 2 numbers are entered, I want them to translate and write them as binary.This is very important for me, I have been dealing for 2 days I made the code here, but I couldn't do it after that.Can someone who knows help …

Member Avatar for rproffitt
0
115
Member Avatar for monjo

section .text global _start: _start: mov esi, array ; get pointer to array mov edi, arraylen ; edi = number of array elements loop: mov edx, 2 ; print 2 bytes mov ecx, [esi] ; get current array element add ecx,48 push ecx ; push to stack since we need …

0
102
Member Avatar for himanshucary

Dear All, From the below codes, I can get the values of text boxes x1,x2 in the Textbox1 of form2. (when I write x1 or x2 in the textbox 2 of form2.) But when I write c1 or c2 in the Textbox1 of form2 then it gives error. Pl. help …

Member Avatar for tinstaafl
0
147
Member Avatar for Yasmeen_4

Using mars (mips simulator) write a program using spim assembly language to read 20 integer numbers (positive and negative) store them in an array of 20 elements rnd compute the following on these numbers. 1. The count of positive numbers 2. the count of even numbers 3. print only numbers …

Member Avatar for Reverend Jim
0
223
Member Avatar for Nobu_1

Hello,i learned how to used the C++ but i have problems to analysis the problem in my project. Write a program to process monthly paycheck for all contract workers of an organization. Each worker will have the following information: Identification number (at-digit integer), the worker's name, hourly pay rate, and …

0
134
Member Avatar for Dharshika_1

MARIE program to calculate some basic statistics on a list of positive numbers. The program will ask users to input the numbers one by one. Assume that all numbers will be in the range 1 to 1000. To terminate the data entry, the user will input any negative number. Once …

Member Avatar for rproffitt
0
366
Member Avatar for rjrajbir

Hi, I am a newbie here, Recently I was working with H3LIS331DL 3-Axis Linear Accelerometer I²C Mini Module Here is code for the X, Y, Z-axis. #include <Wire.h> // H3LIS331DL I2C address is 0x18(24) #define Addr 0x18 void setup() { // Initialise I2C communication as MASTER Wire.begin(); // Initialise Serial …

Member Avatar for rproffitt
0
415
Member Avatar for VIRTUAL_2

[org 0x0100] n1: db 1 n2: db 2 largest: db 0 mov ax, byte[n1] mov bx, byte[n2] cmp ax,bx jg next mov [largest],bx jmp endrtn next:mov [largest],ax endrtn: mov ax, 0x4c00 int 0x21 error in line 6 and 7 error is mismatch in operand sizes

Member Avatar for rproffitt
-1
196
Member Avatar for VIRTUAL_2

[org 0x0100] num: db 0 factorial: dw 1 VUID: db 1,2,3,4,5,6,7,8 mov bx,0 jmp start fact: mov ax, byte[num] fact_loop: mul word[factorial] sub ax,1 cmp ax,0 jg fact_loop ret start: mov bx,0 mov cx,[VUID+bx] add bx,1 shr cx,1 jc start mov [num],cx call fact mov ax, 0x4c00 int 0x21

Member Avatar for rproffitt
0
296
Member Avatar for VIRTUAL_2

[org 0x0100] num: db 0 factorial: dw 1 VUID: db 1,2,3,4,5,6,7,8 mov bx,0 jmp start fact: mov ax, byte[num] fact_loop: mul word[factorial] sub ax,1 cmp ax,0 jg fact_loop ret start: mov bx,0 mov cx,[VUID+bx] add bx,1 shr cx,1 jc start mov [num],cx call fact mov ax, 0x4c00 int 0x21 when …

Member Avatar for rproffitt
0
227
Member Avatar for ss00ss00ss00

i'm really struggling with this pseudocode to convert it to MARIE Input a number Assign this number to x if(x <y) x = x + y; z=z+w; else y=y-w; Print the value of the accumulator. x, Dec 0 y, Dec 2 z, Dec 5 w, Dec 1

Member Avatar for ss00ss00ss00
0
3K
Member Avatar for DanyOcean

Hi, I apologize if my english is bad, I need some help printing the value of a variable in the code that I show below, I'm using emu8086 and I need that this works in this code example that is the same that comes in the examples of emu8086 (PrinterDemo.asm) …

Member Avatar for Thaumtrope
1
12K
Member Avatar for Tormod

Has been looking at different methods like using a look-up table or double-dabble, but have up to this moment not found any algoritm that do the work most effectively. The 64 bit value is delivered to the routine in two 32 bits registers (upper,lower). I am writing a larger project …

Member Avatar for rproffitt
0
391
Member Avatar for Harry756

A friend and I are talking about taking our hobby of printing funny T-shirts into a living, and start our own website in Sydney. And then we need to find a cheap marketing company who can provide support and have experiences in helping start-up companies. Anyone who knows a marketing …

Member Avatar for Dani
0
221
Member Avatar for Zerua

Enter your answer: Cucumber You got the wrong answer... but it should be correct answer Data Segment input db "Enter Your Answer: $" g db 20 dup('$') ; strlen1 db $-g str2 db 'cucumber','$' strlen2 db $-str2 streq db 10,13,'You got the correct answer','$' struneq db 10,13,'You got the Wrong …

0
277
Member Avatar for Zerua

I am trying to figure out why my answer still wrong even though I type the cucumber... .model small .stack 100h data segment str1 db "Enter Your answer: $" after db "Your answer is: $" answer db "Cucumber$" input db 20 dup("$") newline db 10,13, "$" correct db "Your Answer …

Member Avatar for rproffitt
0
386
Member Avatar for Zerua
Member Avatar for aisopos

Hey guys, I need some help with a Marie simulator...I need to write a program that takes numbers from 0-100 and then prints F(fail) if the number is <50 and P(pass) if the number is >49 and <101 needs to stop at 10 results. If someone can help me I …

Member Avatar for rproffitt
0
349
Member Avatar for NewbieChameleon

I'm just starting out with Assembly languege, having installed NASM on openSUSE 13.1, i386 family processor yesterday. My worry is that a simple program like "Hello World!" has flagged a warning when linking...see line 3 below: 1. coker.mu@linux-jm54:~/nasm> nasm -f elf helloWorld.asm 2. coker.mu@linux-jm54:~/nasm> ld -m elf_i386 -s -o helloWorld …

Member Avatar for Kaveri_2
0
895
Member Avatar for Krishneel_2

Hello; can anyone help me with creating a stack in wombat machine simulator. I don't have any Idea of how it should be implemented.

Member Avatar for rproffitt
0
221
Member Avatar for tun712

I was wandering aimlessly on google, I found [ReactOS](https://www.reactos.org/). It's interesting. I tried this OS, many windows applications are running well on it. But some latest applications are unable to run like **Firefox 65.0.1** I have few questions, * How worth is using this OS? * What is future of …

Member Avatar for tun712
0
859
Member Avatar for Sergei_1

I have questions: 1) Program to get input from user till 'z' or 'Z' is inputted the program will check for the chars, and print (new line) small chars (new line) big chars (new line) numbers [without 'z' or 'Z'] can't use variables. only Stack. example : input: ASdf154sdgdf123vcvbz Small …

Member Avatar for rproffitt
0
645
Member Avatar for Sergei_1

I have to get from user up to 8 letter to string, and print the string in reverse. There is my code : STA SEGMENT STACK DB 100H DUP (0) STA ENDS DATA SEGMENT MSG1 DB 'ENTER STRING (Maximum is 8) : $' MSG2 DB 'REVERS IS : $' ISTR …

Member Avatar for rproffitt
0
1K
Member Avatar for Rooro

Hello everyone : ) i'm working on : [quote]Write a program that takes an input sentence from the user and on next line display the number of capitals letters in the sentence. Note: · User is not allowed to enter a sentence with more than 9 Capital letters. [/quote] what …

Member Avatar for Ebru
0
7K
Member Avatar for Rock Ridge Farm

I am having problems with this program. It assembles but will not run. it will not even start - anyone see the error? global _start section .data $STR00000 db "hello world",0 section .bss $u_exitcode resd 1 section .text extern _iwbstrcpy extern _iwb_finish extern _iwbprint _start: push rbp ; set up …

Member Avatar for rproffitt
0
433

The End.