Git Product home page Git Product logo

huc's People

Contributors

artemiourbina avatar blockos avatar jbrandwood avatar jettmonstersgoboom avatar trapexit avatar turboxray avatar uli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

huc's Issues

Crash on reading bin file with farmemget() when the file overlaps 2 banks

Hello/

I use #incbin(file,"file.bin") to nest a music file ( around 6KB) on my project. I use farmemget() this way to iterate through the file:
farmemget(&buffer, file+cursor, 12); // where cursor is an unsigned int, full code in C, no ASM on my side

Everything works fine when the file is the first #incbin, but if it's placed in second position, it crashes. And it seems to be related to the file overlaping 2 data banks.

Is it considered a bug or farmemget() wasn't meant to be used like this?

thanks for your time

Fix for a bug in _load_font

While developing (on a different version), I found a bug in one of the library functions which I was able to fix on my version. I am notifying you so that you can also update, since this bug also exists on the version in this repository.

In include/huc_gfx.asm, the _load_font function doesn't properly set up for loading vram - it fails to set colours, and jumps to the wrong function.

At the termination point from _load_font.3, please replace:
jmp load_vram

with:
stb _font_color+1,<_ah
lda _font_color
bne .l3
inc A
.l3: sta <_al
jmp load_font

can't get farptr issue

Not sure what I am doing wrong but the following code won't compile.

int vram_curr_addr = 0;

typedef struct {
    unsigned int   frame_count; // number of frames
    unsigned int   block_size;  // block size for frame
    unsigned int   vram_addr;   // vram address for frame 0
    unsigned int   ctrl_size;   // SZ_16x16, SZ_32x32
} SpriteData;

void load_vram_32x32( SpriteData* sd, int* data, int count )
{    
    sd->frame_count = count;
    sd->block_size = 0x100;
    sd->vram_addr = vram_curr_addr;
    sd->ctrl_size = SZ_32x32;
    load_vram(vram_curr_addr, data, count*0x100);
    vram_curr_addr += count * 0x100;
}

I get this error.

;error: scroll.c(27)
; load_vram(vram_curr_addr, data, count*0x100);
;                                            ^
;******  can't get farptr  ******

make check not working properly on mac

the 'make check' command doesn't seem to properly process the list of files on Mac
According to the output, the mac version of md5sum is expecting an actual filename as a parameter and is confused by the '<'
(this happens with and without the call to dos2unix)

Directly passing the file name to md5sum seems to be working, and only Win platform actually needs the file to be converted to UNIX format

[CI] Publish step randomly fails

The 'Publish Package' step run at the end of the flow seems to be randomly failing, with errors pointing to github infra issues (need logs)

The action 'pyTooling/Actions/releaser' doesn't seem to have any retry mechanism.
See if retries can be added to the action, on if they can be implemented at a higher level, in the yaml file itself using other actions

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.