Recent content by cupcake
-
C
Graduate If wormholes connect two areas in spacetime, wouldn't that require 5
I have heard that actually we have more than 10 dimension.. would that be possible?- cupcake
- Post #8
- Forum: Astronomy and Astrophysics
-
C
How to Compare Array Elements with a Constant in Assembly Language
because, if I don't initialize it again, the output would be very strange, it prints out some strange characters (probably asciii) I have tried to remove it before, but the results became worse.. maybe I'll leave it as it is.. and come back again after I do all the questions. Ok thanks.. I...- cupcake
- Post #18
- Forum: Engineering and Comp Sci Homework Help
-
C
How to Compare Array Elements with a Constant in Assembly Language
Ok, Thanks a lot~ I got it..- cupcake
- Post #16
- Forum: Engineering and Comp Sci Homework Help
-
C
How to Compare Array Elements with a Constant in Assembly Language
sorry double post my current output: for array db 2,3,4,5,6,7 threshold number equ 5 it will print the output 2,3,4 there no number less than threshold- cupcake
- Post #14
- Forum: Engineering and Comp Sci Homework Help
-
C
How to Compare Array Elements with a Constant in Assembly Language
ok, wait.. I have successfully print the numbers which are less than threshold number.. but, my problem...is now about printing the message if there are none of numbers less than threshold.. where should I put the code, cause this one works only when there are no number less than threshold, if...- cupcake
- Post #13
- Forum: Engineering and Comp Sci Homework Help
-
C
How to Compare Array Elements with a Constant in Assembly Language
hmm..ok now, how to loop through the array? I should use loop instruction, shouldn't I? I'm not really sure how to do the looping.. here.. currently in my code, I have mov al,array[bx] cmp al,threshold jl print so, I should do loop array after cmp, al threshold?- cupcake
- Post #11
- Forum: Engineering and Comp Sci Homework Help
-
C
How to Compare Array Elements with a Constant in Assembly Language
I don't know about JSR, and I think there's no such mnemonics like that? I have checked my textbook but there is no JSR.. so I go with JL.. here my revision, after I read your thought.. please tell me if I miss something cmpr_thr: mov dl,10d ;display line mov ah,2h int 21h mov...- cupcake
- Post #9
- Forum: Engineering and Comp Sci Homework Help
-
C
How to Compare Array Elements with a Constant in Assembly Language
thanks you all for your inputs... Here I post all my code to avoid the misunderstanding.. first half of the code, basically just printing the no of elements in array and display them.. stk segment stack db 128 DUP(?) stk ends ; data segment prompt1 db 'Your array: $' array db...- cupcake
- Post #7
- Forum: Engineering and Comp Sci Homework Help
-
C
How to Compare Array Elements with a Constant in Assembly Language
1) how to initialized the array = 0?? I have initialized bx and cx above, sorry I didn't copy my whole code.. start: mov ax,data ;initialise data segment mov ds,ax xor ch,ch ;initialize counter mov cl,count xor bx,bx ;initialize index register It seems my cmp isn't working cause it...- cupcake
- Post #3
- Forum: Engineering and Comp Sci Homework Help
-
C
How to Compare Array Elements with a Constant in Assembly Language
Hi, I want to ask.. suppose I have an array and a constant called threshold in my data segments array db 1,2,3,4,5,6 threshold equ 5 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, display the...- cupcake
- Thread
- Assembly Assembly language Language
- Replies: 20
- Forum: Engineering and Comp Sci Homework Help
-
C
Linear and time-invariant system
pls anyone?- cupcake
- Post #2
- Forum: Engineering and Comp Sci Homework Help
-
C
Linear and time-invariant system
Homework Statement consider these systems is linear or time invariant? a) Y[n]=aX[n]+b b) Y[n]=X[n] X[n-5] c) Y[n]=5X[n]+9X[n-5] Homework Equations linearity of the system is defined by the principle of proportionality and superposition and time-invariant system means if a time...- cupcake
- Thread
- Linear System
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help
-
C
Period of oscillations of the disk
why this is not a uniform circular motion? is it because the disk is not moving in constant speed?- cupcake
- Post #4
- Forum: Introductory Physics Homework Help
-
C
Period of oscillations of the disk
Homework Statement A circular disk of radius R and uniform density is free to pivot about a fixed point P on its circumference. Calculate the period of oscillations of the disk, in the plane of Figure I, when it is displaced by a small angle about its pivot and released. Homework...- cupcake
- Thread
- Disk Oscillations Period
- Replies: 4
- Forum: Introductory Physics Homework Help
-
C
Internal-Combustion Engine Prototypes Ranking Task?
I don't know..masteringphysics said it's wrong :(- cupcake
- Post #5
- Forum: Introductory Physics Homework Help