Thanks ccovell !
I have made a major breakthrough today and got one of ccovell's demos up and running on the HuCard !!!
Before I tested the demo, I had done a test where I loaded AfterBurner II into the flash memory, over the USB link. I then read the data back out of the flash memory and compared it to the original game file and they matched exactly. This meant that the flash writing routines and the USB communication routines are working correctly.
However, when I attempted to play the game on the PC-Engine, I got nothing but a blank screen. However, ccovell's demo works correctly. The only thing I can think of is that maybe the two highest address lines are backwards. Because ccovell's demo is small enough that A18 and A19 will both always be zero.
One other interesting thing is that I had to do the "bit swap" operation on all of the databytes, in order to get ccovell's demo to run.