Jason
Member
Registered: 5th Aug 03
Location: Northern Ireland
User status: Offline
|
any give me a hand write some code (cd tasm used?)
i have to have 3 letters put in at a time to show
ABC then a tab space then A space B space c
then the same for
DEF
GHI
if ya can help cheers!
[Edited on 06-11-2003 by Jason]
|
luca2020
Member
Registered: 26th May 02
Location: Maidstone, Kent
User status: Offline
|
lol ive just started doing this, but i think mines different to that
anyway im usless at it, is there not any pc forums u can ask, i dout very many people on here will know how to write assembly language
|
Kerry
Member
Registered: 5th Oct 01
Location: Norwich
User status: Offline
|
A B C
E F G
is that it
|
kerzo
Member
Registered: 10th Nov 02
Location: Norn Iron
User status: Offline
|
grr i have a test tomorrow in c programming and i am not confident!! at least he wont have minus marks
|
Jason
Member
Registered: 5th Aug 03
Location: Northern Ireland
User status: Offline
|
its a bloody coont and iv got a test 2moz on it and iv had a sneek peek at the question this is it....
between that and java!
|
Jason
Member
Registered: 5th Aug 03
Location: Northern Ireland
User status: Offline
|
what it shud look like
ABC A B C
DEF D E F
GHI G H I
why the fook wont it show the true spacing im putting in??
[Edited on 06-11-2003 by Jason]
[Edited on 06-11-2003 by Jason]
|
Jason
Member
Registered: 5th Aug 03
Location: Northern Ireland
User status: Offline
|
does any1 know any good programming or IT sites that have online geeks 24.7?
|
Ian
Site Administrator
Registered: 28th Aug 99
Location: Liverpool
User status: Offline
|
The font isn't designed to do so Jason.
|
Drew
Banned
Registered: 24th Nov 01
Location: County Durham
User status: Offline
|
PLEASE MOVE ME TO OFFDAY!!!!!!
|
Jason
Member
Registered: 5th Aug 03
Location: Northern Ireland
User status: Offline
|
quote: Originally posted by Ian
The font isn't designed to do so Jason.
ah rite...
any good at assembly then Ian??
|
Jason
Member
Registered: 5th Aug 03
Location: Northern Ireland
User status: Offline
|
ttt
|
PaulW
Member
Registered: 26th Jan 03
Location: Atherton, Greater Manchester
User status: Offline
|
so you want the display to be something like this??
.... = TAB CHR
. = SPACE
ABC....A.B.C
DEF....D.E.F
GHI....G.H.I
or all on one line? Why do a tab chr when you can just write the charector to XY location?
[Edited on 07-11-2003 by PaulW]
|
Paul_J
Member
Registered: 6th Jun 02
Location: London
User status: Offline
|
Ah good old Assembler... thats a absolute bitch ...
Kerzo m8, C / C++ is a doddle compared to assembler...
all int 21h 's and mov al,45 trash...
hmm, don't really get what you need to do? would be a piece of pish in C++ but assembler is a hoe...
So you have set the constant variables A,B,C yeh?
just create another one called 'Spacer1' and 'Spacer2'
set the value of spacer1 to your tab sized space - i.e. '<------->' and set spacer2 to your single space so its " "
then just output it 1 by one
so output A, output B, output C, then output spacer1, then output A, then output spacer2, then output B, then output spacer2, then output C - then do new line...
just where I say 'output' put in all the code to do that (which I can't remember off the top of my head since that was ages ago)
Paul J
|
Jason
Member
Registered: 5th Aug 03
Location: Northern Ireland
User status: Offline
|
what it has 2 look like is
ABC.......A B C
DEF ...... D E F
GHI......G H I
dont ask why i have to tab its jus 2 make sure i understand how 2 use the ascci key ting
|
Paul_J
Member
Registered: 6th Jun 02
Location: London
User status: Offline
|
ok then do what I said above but replace the output 'spacer1' to tab ascci key...
whats the problem? I feel I'm missing something?
|
Jason
Member
Registered: 5th Aug 03
Location: Northern Ireland
User status: Offline
|
all them ah's and different registers frys my head!
|
PaulW
Member
Registered: 26th Jan 03
Location: Atherton, Greater Manchester
User status: Offline
|
hang on ill see if i can figure anything out
what platform is it for?
|
Jason
Member
Registered: 5th Aug 03
Location: Northern Ireland
User status: Offline
|
quote: Originally posted by Paul_J
whats the problem? I feel I'm missing something?
what ya mean m8??
he only gave us a glimse... a teaser of 2moz's question i jus remembered what i cud!
lol basically asking for 3 inputs at a time then new line and repeat
|
Jason
Member
Registered: 5th Aug 03
Location: Northern Ireland
User status: Offline
|
quote: Originally posted by PaulW
hang on ill see if i can figure anything out
what platform is it for?
lol platform??
i dunt have a clue im new to this!
all i do is enter
cd tasm
tasm edit myattempt.asm etc etc
|
PaulW
Member
Registered: 26th Jan 03
Location: Atherton, Greater Manchester
User status: Offline
|
ok then lets get this right....
the values A....I are all pre-defined, so you type nothing, you just want code which outputs what its supposed to, nothing else, so therefor no user input at all?
|
Jason
Member
Registered: 5th Aug 03
Location: Northern Ireland
User status: Offline
|
in the dos window btw
|
Jason
Member
Registered: 5th Aug 03
Location: Northern Ireland
User status: Offline
|
quote: Originally posted by PaulW
ok then lets get this right....
the values A....I are all pre-defined, so you type nothing, you just want code which outputs what its supposed to, nothing else, so therefor no user input at all?
no there is user input..
i have to enter "A,B,C" and it has to show that with echo's etc
sorry if im confusion ya infact im confusion my self i'll be able 2 show it 2moz when handed it.. can use all my resources and the net
|
Paul_J
Member
Registered: 6th Jun 02
Location: London
User status: Offline
|
wtf?
firstly your saying you just need to write things on screen as
ABC.....A.B.C
now your saying you need to input A, B and C?
Dude I can't help you if you don't even tell me what you actually have to do?
Tbh though I need sleep...
|
Jason
Member
Registered: 5th Aug 03
Location: Northern Ireland
User status: Offline
|
i shuda said i need the user to input ABC and it to come up on screen as the following sorry
i need sleep too...
have a read here 2moz i'll have the question on here for ya
thanks tho alot... be lost without one's like urself
|
Paul_J
Member
Registered: 6th Jun 02
Location: London
User status: Offline
|
quote: Originally posted by Jason
no there is user input..
i have to enter "A,B,C" and it has to show that with echo's etc
thats the thing - what you said there probably isn't true either?
Are you entering as you said "A,B,C"
so say it was a shopping list, A = egg, B = toast and C = jam
you'd enter egg, toast, jam
and then it'd display egg toast jam without the commas? thus writing code to realise there's a comma there and seperating each thing into a seperate variable to be outputted later?
or are you supposed to do this... (which I think you probably are but are describing it pretty shit?)
it comes up >
you enter egg press enter
you enter toast and press enter
you enter jam and press enter
it saves all 3 as A,B,C then outputs em again with a space between?
thus you should of said you had to enter "A","B","C"
ffs. just look at your previous coding and copy + paste things for the appropriate actions, without any of my old code infront of me I can't remember what it is exactly you have to write
Assembler is ghey!
Paul J
|