From af26db3396cf08005a120aace23d990ec19d947f Mon Sep 17 00:00:00 2001 From: Steven Hugg Date: Fri, 17 May 2019 15:55:59 -0400 Subject: [PATCH] added neslib2.lib --- presets/nes/horizmask.c | 2 +- src/worker/lib/nes/neslib2.lib | Bin 0 -> 28494 bytes 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 src/worker/lib/nes/neslib2.lib diff --git a/presets/nes/horizmask.c b/presets/nes/horizmask.c index 2b222098..be16c708 100644 --- a/presets/nes/horizmask.c +++ b/presets/nes/horizmask.c @@ -47,7 +47,7 @@ void update_nametable() { char buf[32]; // divide x_scroll by 8 // to get nametable X position - byte x = ((x_scroll >> 3)+32) & 63; + byte x = (x_scroll/8 + 32) & 63; if (x < 32) addr = NTADR_A(x, 4); else diff --git a/src/worker/lib/nes/neslib2.lib b/src/worker/lib/nes/neslib2.lib new file mode 100644 index 0000000000000000000000000000000000000000..f87b74d2dcf9eb64368b2f9775e7783b430b0b88 GIT binary patch literal 28494 zcmeI5d7NHFneR`Xck6xM(%nhkUXt!~I=yBk3*Fh5&O#OziFQJ0Ad<}_AfgCKNJJ0> z6$KS#3n~H<6@ft(5izKYjLYDFqt2)qoa^=G&UL(Am+^joPn~|>w*zvSd*`3|cpK_@ zo_eZIRlVm_JzLc|*|l}k<;6h|{BCCuY`T2c*7CpwTgc~=wv$RpmyxE!xQ}!-bWcGL zRDu_QC&Yr_?KJS~L=apI^DY+zCDj3~1i@DLHQ-Y6w^1()V*__T|6fid!mz0KLz{n* zE~~j<>)FSvl7Gw#g1+Dnp$oqq2JWcq%y$P92h@b?3}V+O)9x!y{C)Wc6K_* zUH-wOdlvd0cbns~q`&MoIB7Sn;9%&c>B=8dFAh|_dsQ#)>)i`y$X!x!FmRUy;b#JO zKa9g}YyQDJw^h_d`3F<(B2{|7D{zN`1M4)Z_fzYro0sixo*&d>#(%5E^j6P#$px_o zQfb%i(bT}5a2Kfjg227t{+jxs!4qylwzUOneKPszCQSBiwTgWeza#lGb>5*m=c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