Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 19:43
    WeRandom commented #1499
  • 19:41
    WeRandom commented #1499
  • 19:41
    WeRandom commented #1499
  • 19:37
    WeRandom commented #1499
  • 19:35
    sudopigeek commented #1499
  • 19:34
    WeRandom commented #1499
  • 19:19
    sudopigeek commented #1499
  • 18:07
    WeRandom opened #1499
  • 13:48
    MishaTY closed #1492
  • 13:48
    MishaTY commented #1492
  • 13:42
    MishaTY commented #1492
  • 12:41
    WeRandom commented #1497
  • 12:40
    WeRandom commented #1497
  • 12:38
    quajak review_request_removed #1353
  • 12:38
    quajak review_requested #1353
  • 12:38
    quajak synchronize #1353
  • 12:38

    quajak on additionalindexarraytests

    Add DebugMode parameter Add debugmode to test runner ui Merge branch 'master' into debu… and 6 more (compare)

  • 12:38
    quajak review_requested #1253
  • 12:24
    quajak synchronize #1253
  • 12:24

    quajak on AnonymousTypeTests

    Add DebugMode parameter Add debugmode to test runner ui Merge branch 'master' into debu… and 6 more (compare)

John
@djlw78
no, cosmos might have disabled it in compilation.
BlitzWolfMatthew
@BlitzWolfMatthew
Dammit
Quajak
@quajak
Cosmos does not disable unsafe code
ManagedMemoryBlocks are in bytes
For what do you want better documentation?
Whats the problem with creating the array like this ManagedMemoryBlock[] mb = new ManagedMemoryBlock[1000]?
John
@djlw78
no, uh. I want pointers xD (that will grind your gears)
Quajak
@quajak
To Read from 101, just do mb.Read16(101)
John
@djlw78
what about quicksilveros, they used asm code and pointers to make com, mz-exe and pe-exe work.
Quajak
@quajak
Yeah fore sure you currently need asm to allow external code execution
The goal is that you wouldnt need asm for it but cosmos isnt there yet
John
@djlw78
accept, the code i presented blitz with in pm's can't actually run without a hard drive with files in it because nasm poops out if a file is to long.
BlitzWolfMatthew
@BlitzWolfMatthew
Rip
@quajak thanks for the answer, will test later!
BlitzWolfMatthew
@BlitzWolfMatthew
OMG, dont tell me 2D arrays dont work :/, frick
Charles Betros
@charlesbetros
Use jagged arrays
Fedor Penkov
@Deeplerg_gitlab
Guys, how much memory does it consume with a simple "hello world" output? Just want to know without going into the hassle of setting all the stuff up and running it myself
BlitzWolfMatthew
@BlitzWolfMatthew
Well, if the output is in ASCII then it will be the number of chars * byte so 11 bytes?
Fedor Penkov
@Deeplerg_gitlab
I mean, .net programs have this +10-20mb overhead even if it's just an empty program doing nothing but Console.Read();
samnad
@samnad
my os with a full gui, mouse, keyboard, programs, etc etc uses ~33 when running
33 mb
*
samnad
@samnad
what does this mean?
Exception: System.Exception: Error compiling method 'SystemVoidCosmosCore_AsmDelegateImplInvoke': System.Exception: Events with return type not yet supported!
John
@djlw78
hm
Oliwier Minota
@MultiWu
Hi!
How to make a OS sleep for 2 seconds?
samnad
@samnad
try this
public static void WaitSeconds(int secNum) { int StartSec = Cosmos.HAL.RTC.Second; int EndSec; if (StartSec + secNum > 59) { EndSec = 0; } else { EndSec = StartSec + secNum; } while (Cosmos.HAL.RTC.Second != EndSec) { } }
oops
that didn't format
napalmtorch
@napalmtorch
Hey guys, I'm having an issue with my OS crashing. Everything was working fine, but as I kept adding to the project, it started happening more. VMWare spits out an error saying "This virtual machine has tried to execute an invalid part of memory." Its likely due to a memory leak somewhere in my code, however I have no idea how to pinpoint the issue. The crash happens when I try to minimize a form in my OS, which was working perfectly fine before. I'll try looking over my code to make sure it wasn't a stupid mistake, If anybody could help me that would be great.
napalmtorch
@napalmtorch
Also @samnad I don't think your algorithm's for getting used memory are correct, as I used your code with my project which is much larger and it returned 33 as well
ascpixel
@ascpixel
hey, in MemoryBlock, is there a way to automatically get an address for the Base field? I want to use MemoryBlock somewhere else but I don't want it to overwrite my DMA transfer
and DMA is quite slow so I can't really wait for it to finish as it was designed to do it in the background
Quajak
@quajak
The ManagedMemoryBlock gives you the offset for it
Use non managed MemoryBlocks if you want to set the base field yourself
LavamasterYT
@LavamasterYT
how do i get the current date and time
Quajak
@quajak
DateTime should work
Oliwier Minota
@MultiWu
How to change Project from UserKit to DevKit
Quajak
@quajak
You install the dev kit differently
Oliwier Minota
@MultiWu
I mean how to change my OS code from using UserKit to DevKit
Or i need to create a new Project?
Quajak
@quajak
You would install the devkit and then when you build the same project, it will use the devkit
Oliwier Minota
@MultiWu
Oh Ok. Thanks
Oliwier Minota
@MultiWu
How can i change resolution?
*I learning Cosmos. I don't know how to use graphics drivers.
Quajak
@quajak
you can pass a mode to GetFullScreenCanvas
Oliwier Minota
@MultiWu
Ok, i will try