Skip to content

Instantly share code, notes, and snippets.

@simias
simias / mkpimage.c
Created February 1, 2017 14:33
Rewrite of barebox's mkpimage
/* Replacement for altera's proprietary mkpimage (part of their EDS)
*
* Create an Altera BootROM-compatible image of the Second Stage Boot
* Loader (SSBL).
*
* This program should generate the same output as Altera's mkpimage
* version 16.1 (build 196). If it doesn't it's a bug.
*
* The original version of this program was part of barebox.
*

Keybase proof

I hereby claim:

  • I am simias on github.
  • I am simias (https://keybase.io/simias) on keybase.
  • I have a public key whose fingerprint is 60DD 85DC B0E4 8F93 64C5 717D 5C96 8D2B 76C4 CE95

To claim this, I am signing this object:

PYTHONPATH="/home/lionel/src/ambix/buildroot/output/target/usr/lib/python3.5/sysconfigdata/:/home/lionel/src/ambix/buildroot/output/target/usr/lib/python3.5/site-packages/" /home/lionel/src/ambix/buildroot/output/host/usr/bin/python3.5 support/scripts/pycompile.py /home/lionel/src/ambix/buildroot/output/target/usr/lib/python3.5
Traceback (most recent call last):
File "/home/lionel/src/ambix/buildroot/output/host/usr/lib/python3.5/py_compile.py", line 125, in compile
_optimize=optimize)
File "<frozen importlib._bootstrap_external>", line 700, in source_to_code
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "/home/lionel/src/ambix/buildroot/output/target/usr/lib/python3.5/site-packages/jinja2/asyncfilters.py", line 24
^
SyntaxError: 'yield' inside async function
#include <fcntl.h>
int fd = 0;
int main() {
if (fd == 0) {
fd = open("/toto", O_RDWR);
}
for (;;) {
`default_nettype none
module psx_timer #(parameter WIDTH = 16)
(input clk,
input aresetn,
input [WIDTH - 1:0] target,
input reset_on_target,
input irq_on_target,
input irq_ack,
input [WIDTH - 1:0] counter_value,
Sending packet: $qSupported:multiprocess+;swbreak+;hwbreak+;qRelocInsn+;fork-events+;vfork-events+;exec-events+;vContSupported+;QThreadEvents+;no-resumed+#df...Ack
Packet received:
Packet qSupported (supported-packets) is NOT supported
Sending packet: $vMustReplyEmpty#3a...Ack
Packet received:
Sending packet: $Hg0#df...Ack
Packet received:
Sending packet: $qTStatus#49...Ack
Packet received:
Packet qTStatus (trace-status) is NOT supported
rustation/src/tracer.rs:62:40: 62:44 error: mismatched types [E0308]
rustation/src/tracer.rs:62 let var = self.variables.entry(name);
^~~~
rustation/src/tracer.rs:62:40: 62:44 help: run `rustc --explain E0308` to see a detailed explanation
rustation/src/tracer.rs:62:40: 62:44 note: expected type `std::string::String`
rustation/src/tracer.rs:62:40: 62:44 note: found type `&str`
Running from cache:
lw $t0, 0($t1)
nop
takes 8 cycles
lw $t0, 0($t1)
lw $t1, 4($t1)
nop
.set mips1
.set noreorder
.text
.global main
.type main, function
.equ IRQ_STAT, 0x1f801070
.equ IRQ_MASK, 0x1f801074
diff --git a/mednafen/psx/gpu_polygon.cpp b/mednafen/psx/gpu_polygon.cpp
index 85da0f2..16c0d17 100644
--- a/mednafen/psx/gpu_polygon.cpp
+++ b/mednafen/psx/gpu_polygon.cpp
@@ -525,6 +525,18 @@ INLINE void PS_GPU::Command_DrawPolygon(const uint32_t *cb)
return;
}
+ vertices[0].r = 0x00;
+ vertices[0].g = 0xff;