Join us on Discord!
You can help CodeWalrus stay online by donating here.

The funny quote thread (NSFW)

Started by Dream of Omnimaga, December 01, 2014, 06:17:45 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Snektron

#195
a T-State is one processor cycle. The z80 in TI-83/84 etc is about 6 Mhz, or 6*10^6 Cycles per second.
Since it takes a few cycles to perform one command its not as simple as "1/6000000th of a second (which is the time to perform one command)
times the number of commands". "ld a, 2" takes 7 t-states and "add a, 2" takes 4 7 too. Together 11 14 cycles. 1/6000000th of a second times the number of cycles, 11 14, is the
amount of time it takes to execute this code :P

Also my FX-8350 appearantly takes about 487 picoseconds (4.87*10^-10 sec)

EDIT: Add takes 7 T-States, not 4 <_<
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


alexgt

Thank you, my knowledge has expanded  (-_(//));
  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

bb010g

This happened (we should totally have a CodeWalrus OWOT by the way):
  • Calculators owned: HP 50g, Prime, 28S, 35S, Casio Prizm, dead Nspire CX CAS

Strontium

  • Calculators owned: TI Nspire CX, HP Prime
  • Consoles, mobile devices and vintage computers owned: NES

TheMachine02

Quote from: Cumred_Snektron on May 26, 2015, 07:52:29 PM
Theoretically 2+2 with ASM takes about:
~ 6 Mhz calc

ld a, 2      ; 7 T-States
add a, 2     ; 4 T-States

7 + 4 = 11 T-States
1 / (6*10^6) *  11 = 1.83333333*10^-6 sec, or 1.8 micro sec.
(also thats 1/(1.5*10^7) * 11 = 7.3*10^-7 sec, or 7.3 micro sec on 15 mhz mode)
Just felt like doing that ;D

You failed here   :P
add a,2 is 7 TStates, and I difficultly see how 15MHz is slower (7.3 micro sec vs 1.8 micro sec) than 6MHz, appart than an error in converting from 10^x
Guess 2.3 micro sec and 0.93 micro sec would be better  :P

Snektron

Oh yeah, 0.73 micro sec :P
Also i don't know how i got 4 T-States for "add a, 2"... im sure z80.info/z80inst.txt said 4 T-States though. Maybe i read wrong :P
Oh wait i see it now... i think i accidently looked at ADC <_< so i guess it depends, if the carry flag after the previous commands happens to be 0 you could use ld a, 2 / adc a, 2 too
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


TheMachine02

Quote from: Cumred_Snektron on May 27, 2015, 10:31:21 AM
ld a, 2 / adc a, 2 too

Still 14 TStates. Adding an absolute value with a is always 7 TStates (as same as straight operation with absolute value), cause the whole instruction is 2 bytes (opcode+value), adding a 3TStates Machine state for fetching (so a 4M-3M)
The only difference with adding with carry is with hl, add hl,hl is 11TStates, adc hl,hl 15TStates.


Duke "Tape" Eiyeron

There is one way : cheating with calling @z80 bot.
  • Calculators owned: A lot.

Snektron

#203

ld a, 4

rekt

* Cumred_Snektron used h4x
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Dream of Omnimaga

Quote from: bb010g on May 27, 2015, 03:14:56 AM
This happened (we should totally have a CodeWalrus OWOT by the way):

Running DOOOM was my suggestion, by the way :P
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Dream of Omnimaga

QuoteEiyeron, [31.05.15 13:14] TF2 time
Streetwalrus, [31.05.15 13:15] nom cranberries
Streetwalrus, [31.05.15 13:15] these things are good
Eiyeron, [31.05.15 13:18] No more tf2

Morale of the story: cranberries can stop anyone from gaming, even if addicted to WoW or something.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Duke "Tape" Eiyeron

Meh; I meant that I was sick of playing TF2 for today.
  • Calculators owned: A lot.

Dream of Omnimaga

I know. O just thought it was strange out of context. :P
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

alexgt

Lol, I have TF2 but never play it... :P
  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

Snektron

i have don't starve bit i never play it. I only bought it for dont starve together though
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Powered by EzPortal