When writing code to be compiled with SDCC targetting Z80, assembler code fragments can be inserted in the C functions by enclosing them between the __asm and __endasm; tags:
void DoNotDisturb()
{
__asm
di
The Digilent JTag uses FT2232, but its configuration EEPROM contains secrete data needed to be recoginzed by Xilinx ISE/Vivado. The following method only works on linux (tested on Ubuntu16.04), but the patched FT2232 doggle also works on Windows. Since WSL1 does not provide USB device access, the following method will not work for WSL1.
DONT use FT_Prog on offical Digilent cable, as it can trash the firmware! The offical eeprom contains secrete data that cannot be handled correctly by FT_Prog.
Here are steps to create a Digilent-like Jtag that can be used in Xilinx ISE and Vivado
sudo apt-get install libftdi1 ftdi-eeprom| %.hex: %.asm | |
| avra -fI $< | |
| rm *.eep.hex *.obj *.cof | |
| all: $(patsubst %.asm,%.hex,$(wildcard *.asm)) | |
| upload: ${program}.hex | |
| avrdude -c arduino -p m328p -P /dev/arduino-uno -b 115200 -U flash:w:$< | |
| monitor: |
Goal: Emulate a Raspberry Pi with QEMU in order to run the Raspbian O/S (based on Debian Linux).
The current setup is not ideal. For one thing, the maximum RAM allowed using the "versatile-pb" firmware is 256 Mb. In addition, only the most basic peripherals, a keyboard and mouse, are supported.
A number of articles have been written on this topic. Most are outdated, and the few recent ones are missing key information.
| #!/usr/bin/python3 | |
| import socket, sys, threading | |
| # Simple chat client that allows multiple connections via threads | |
| PORT = 9876 # the port number to run our server on | |
| __version__ = "0.0.1" | |
| class ChatServer(threading.Thread): |
| package asyncsocket; | |
| import java.io.IOException; | |
| import java.io.UnsupportedEncodingException; | |
| import java.net.InetSocketAddress; | |
| import java.nio.ByteBuffer; | |
| import java.nio.channels.AsynchronousSocketChannel; | |
| import java.nio.channels.CompletionHandler; | |
| import java.util.concurrent.atomic.AtomicInteger; |
| #!/usr/bin/env python | |
| """ | |
| Aviso para que me recorde que me sente ben. | |
| crontab: | |
| 0,20,40 * * * * DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus XDG_RUNTIME_DIR="/run/user/1000" ~/bin/postura.py | |
| NOTA: axustar as variables de sesión co UID do teu usuario. | |
| """ |
pacman -Syu if pacman needs to be updated you might have to close and reopen the terminal and run pacman -Syu againpacman -S git mingw-w64-x86_64-toolchain mingw64/mingw-w64-x86_64-SDL2 mingw64/mingw-w64-x86_64-SDL2_mixer mingw64/mingw-w64-x86_64-SDL2_image mingw64/mingw-w64-x86_64-SDL2_ttf mingw64/mingw-w64-x86_64-SDL2_net mingw64/mingw-w64-x86_64-cmake make| // | |
| // utf8.c | |
| // training | |
| // | |
| // Created by Conrad Kleinespel on 5/27/13. | |
| // Copyright (c) 2013 Conrad Kleinespel. All rights reserved. | |
| // | |
| #include <stdio.h> | |
| #include <stdlib.h> |
| After installing it http://sourceforge.net/projects/meld-installer/ | |
| I had to tell git where it was: | |
| git config --global merge.tool meld | |
| git config --global diff.tool meld | |
| git config --global mergetool.meld.path “C:\Program Files (x86)\Meld\meld\meld.exe” | |
| And that seems to work. Both merging and diffing with “git difftool” or “git mergetool” |