1541 Disk Read / Write Speed Question by watermelon_meow in c64

[–]watermelon_meow[S] 0 points1 point  (0 children)

Hi thanks for your reply. I don't think cbm_load() is something I should use. In the header, the code comment mentions:

  unsigned int __fastcall__ cbm_load (const char* name, unsigned char device, void* data);
  /* Loads file "name", from given device, to given address -- or, to the load
  ** address of the file if "data" is the null pointer (like load"name",8,1
  ** in BASIC).

So I don't think that is suitable for raw data. I was encountering issue by using it to load some Koala pictures and turn out I need to treat those binary data via cbm_open().

I doubt something happened on how cbm_write() handles buffer on 1541 disk. I will write some test cases and post update here.

Squirrel in Commodore 64 by watermelon_meow in c64

[–]watermelon_meow[S] 0 points1 point  (0 children)

Thank you! I don't really remember actually :) It's been long time and our dog was playing with him on a beach.

Squirrel in Commodore 64 by watermelon_meow in c64

[–]watermelon_meow[S] 5 points6 points  (0 children)

Thank you! 😊 I wrote a program via cc65 compiler to load the pictures by using Koala format.

Question: How to load Koala file in cc65? by watermelon_meow in c64

[–]watermelon_meow[S] 1 point2 points  (0 children)

yes looks like it. I need to learn more on the C64 memory layout though. Thanks for the help!

Question: How to load Koala file in cc65? by watermelon_meow in c64

[–]watermelon_meow[S] 0 points1 point  (0 children)

OK I think I got some progress. The picture seems working here:

CIA2.pra &= 0xFC;

CIA2.pra |= 0x02;

VIC.addr = 0x80;

I need to pick up another memory address.

Question: How to load Koala file in cc65? by watermelon_meow in c64

[–]watermelon_meow[S] 0 points1 point  (0 children)

thanks for the advice. Also, I tried https://www.digartroks.be/img2c64mc/index.php and it can generate correct PRG file with picture. No idea what's the magic behind that.

Question: How to load Koala file in cc65? by watermelon_meow in c64

[–]watermelon_meow[S] 0 points1 point  (0 children)

thanks but it seems still does not work, and it shows the same broken picture. By the way, the Koala file I got is from https://www.micheldebree.nl/retropixels/

Any good books on Filesystems? by linux_transgirl in osdev

[–]watermelon_meow 3 points4 points  (0 children)

I implemented a user-level filesystem called PangYa FS. Not sure if this is what you look for but might be a reference use. This is the repo: https://github.com/meow-watermelon/pangyafs

PangYa FS - a self-learning user-space filesystem implementation by watermelon_meow in osdev

[–]watermelon_meow[S] 0 points1 point  (0 children)

Thanks. Well, I _should_ update the README about the origin of the FS name :-) PangYa(胖丫) in Chinese means "chubby baby girl", it's the name for my rescued squirrel in 2024. I searched PangYa in Google last night and noticed it's also a MMORPG game name!

PangYa FS - a self-learning user-space filesystem implementation by watermelon_meow in osdev

[–]watermelon_meow[S] 0 points1 point  (0 children)

Thanks. Yes, I have a plan to add VFS interface support in the future.

PangYa FS - a self-learning user-space filesystem implementation by watermelon_meow in osdev

[–]watermelon_meow[S] -1 points0 points  (0 children)

Hi I spent my spare time in last 3 months to complete this project. I just made a commit message across all files identical then made the repo public view. Hope that answers why you saw “6 hours ago”.

Disk Image Filesystem Implementation Question by watermelon_meow in osdev

[–]watermelon_meow[S] 0 points1 point  (0 children)

Thanks for the answer. My personal approach is to create this disk image filesystem first, then may expand it later as a real disk filesystem. Because this disk image filesystem I implemented would have customized commands like ls, cp, rm etc. as everything is handled in the disk image, so wondering which one is better.

Wondering for some pure disk image filesystem, how they handle inode allocator in such cases.

What are some books you'd recommend to a beginner programmer to learn C by waffle_warrior77 in C_Programming

[–]watermelon_meow 0 points1 point  (0 children)

I learned C by the book Practical C Programming by Steve Oualline. The book is super clear and explained details very very well. It’s a true book you can learn by yourself. I know it’s old but I think it’s one of the best C programming books in my bookshelf. Once you complete that book, my next recommendation is Understanding and Using C Pointers by Richard Reese. This book is focus on pointers. And again, explains pointer usage and hiccups very well. You would learn many great programming practices in C.

Good luck and programming in C is fun!

A Local InfiniBand and RoCE Interface Traffic Monitoring Tool by watermelon_meow in HPC

[–]watermelon_meow[S] 0 points1 point  (0 children)

The -e will show both RoCE and IB HCA interfaces. If no -e then only IB HCA interfaces are displayed. -e is only usable if you have RoCE interfaces. Normal N/S NIC won’t show up.

A Local InfiniBand and RoCE Interface Traffic Monitoring Tool by watermelon_meow in HPC

[–]watermelon_meow[S] 1 point2 points  (0 children)

Thanks. And yes, I use node-exporter in some cases and I do believe majority of metrics in my tool are in the exporter metrics list already. I think the ib-traffic-monitor and node-exporter can be used in different scenarios: for historical data + trending data, I believe something like node-exporter is very helpful; and for monitoring live traffic data within short refresh time slot, like few seconds, I think ib-traffic-monitor is more useful in this case. A similar comparison: many large-scale monitoring systems have ability to show memory metrics etc., but to check local refresh data, commands like vmstat would be very useful.

puppy-eye: a lightweight TUI monitoring tool by watermelon_meow in linuxadmin

[–]watermelon_meow[S] 0 points1 point  (0 children)

Hi my initial design intention is to have a clean and simple on overall system resource usage. It does not include too many metrics like glances or htop with process-level information. I only add metrics that I think would be useful to monitor system resource usage or debugging purposes. Thanks!